github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/ci/cli/tasks/cleanup-integration.yml (about) 1 --- 2 platform: linux 3 4 image_resource: 5 type: docker-image 6 source: 7 repository: cfcli/cli-base 8 9 inputs: 10 - name: cli-ci 11 - name: cf-cli-binaries 12 - name: bosh-lite-lock 13 - name: vars-store 14 15 outputs: 16 - name: cleanup-integration-outputs 17 18 run: 19 path: bash 20 args: 21 - -c 22 - | 23 set -e 24 25 ENV=$(cat bosh-lite-lock/name | cut -d "." -f 1) 26 27 export CF_PASSWORD=$(bosh int vars-store/ci/infrastructure/$ENV/deployment-vars.yml --path /cf_admin_password) 28 # output password into a temp file for consumption by Windows 29 echo $CF_PASSWORD > cleanup-integration-outputs/cf-password 30 31 set -ex 32 33 domain=$(cat bosh-lite-lock/name) 34 export CF_API="https://api.${domain}" 35 36 export PATH=$GOPATH/bin:$PATH 37 38 pushd cf-cli-binaries 39 tar xvzf cf-cli-binaries.tgz 40 chmod +x cf-cli_linux_x86-64 41 mv cf-cli_linux_x86-64 $GOPATH/bin/cf 42 popd 43 44 cd cli-ci 45 bin/cleanup-integration