github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/ci/bin/reconfigure-release-pipelines (about) 1 #!/usr/bin/env bash 2 3 set -e 4 set -o pipefail 5 6 check_installed() { 7 if ! command -v $1 > /dev/null 2>&1; then 8 printf "$1 must be installed before running this script!" 9 exit 1 10 fi 11 } 12 13 configure_pipeline() { 14 local name=$1 15 local pipeline=$2 16 17 printf "configuring the $name pipeline...\n" 18 19 fly -t ci set-pipeline \ 20 -p $name \ 21 -c $pipeline \ 22 -l <(lpass show "release-pipeline-concourse-credentials.yml" --notes) \ 23 -l <(lpass show "VAT Concourse Credentials" --notes) 24 } 25 26 check_installed lpass 27 check_installed fly 28 29 # Make sure we're up to date and that we're logged in. 30 lpass sync 31 32 pipelines_path=$(cd $(dirname $0)/.. && pwd) 33 34 configure_pipeline cli \ 35 $pipelines_path/cli-release/pipeline.yml