github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/hack/bosh-topgun (about) 1 #!/bin/bash 2 3 set -e -u 4 5 cd $(dirname $0)/.. 6 7 if [ "$#" != "2" ]; then 8 echo "usage: $0 <concourse-bosh-release> <ci>" >&2 9 exit 1 10 fi 11 12 release="$1" 13 ci="$2" 14 concourse="$(pwd)" 15 16 pushd "$release" 17 ./dev/build-concourse "$concourse" 18 19 version="0.0.0-topgun.$(date +%s)" 20 21 release_input=/tmp/hack-topgun/$version 22 mkdir -p $release_input 23 echo $version > ${release_input}/version 24 bosh create-release --version $version --tarball ${release_input}/dev.tgz 25 popd 26 27 export BOSH_ENVIRONMENT=https://10.0.0.6:25555 28 export BOSH_CA_CERT="((testing_bosh_ca_cert))" 29 export BOSH_CLIENT="((testing_bosh_client.id))" 30 export BOSH_CLIENT_SECRET="((testing_bosh_client.secret))" 31 32 fly -t ci execute \ 33 -c "$ci/tasks/topgun.yml" \ 34 -j concourse/bosh-topgun-runtime \ 35 -i concourse=. \ 36 -i ci="$ci" \ 37 -i concourse-release=${release_input} \ 38 -m stemcell=gcp-xenial-stemcell \ 39 --tag bosh \ 40 -- \ 41 --stream \ 42 "$@"