Update to latest pipeline definitions
This commit is contained in:
@@ -2,20 +2,24 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
readonly FLY_TARGET="app-broker"
|
||||
readonly GITHUB_REPO="https://github.com/spring-cloud/spring-cloud-app-broker"
|
||||
|
||||
set_pipeline() {
|
||||
local pipeline_name pipeline_definition branch release_image_tag
|
||||
local pipeline_name pipeline_definition branch ci_image_tag
|
||||
pipeline_name="${1:?pipeline name must be provided}"
|
||||
pipeline_definition="${2:?pipeline definition file must be provided}"
|
||||
branch="${3:?branch must be provided}"
|
||||
release_image_tag="${4:-$branch}"
|
||||
ci_image_tag="${4:-$branch}"
|
||||
|
||||
echo "Setting $pipeline_name pipeline..."
|
||||
fly --target app-broker set-pipeline \
|
||||
fly --target "$FLY_TARGET" set-pipeline \
|
||||
--pipeline "$pipeline_name" \
|
||||
--config "$pipeline_definition" \
|
||||
--load-vars-from config-concourse.yml \
|
||||
--var "github-repo=$GITHUB_REPO" \
|
||||
--var "branch=$branch" \
|
||||
--var "release-image-tag=$release_image_tag"
|
||||
--var "ci-image-tag=$ci_image_tag"
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
Reference in New Issue
Block a user