Make PR manager use the default branch

This commit is contained in:
Alberto C. Ríos
2024-03-12 16:39:04 +01:00
parent 5cec45c33d
commit d573cb2edb
2 changed files with 4 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ resources:
uri: ((github-repo))
username: ((github-token))
password: ((github-password))
branch: main
branch: ((branch))
paths:
- ci/pr-pipeline.yml
- ci/config-concourse.yml

View File

@@ -27,13 +27,15 @@ set_branch_pipeline() {
set_pr_manager_pipeline() {
local -r pipeline_name="app-broker-pull-requests${PIPELINE_NAME_SUFFIX:+"-$PIPELINE_NAME_SUFFIX"}"
local -r branch="2.2.x"
echo "Setting PR manager pipeline..."
fly --target "$FLY_TARGET" set-pipeline --pipeline "$pipeline_name" \
--config pr-manager-pipeline.yml \
--load-vars-from config-concourse.yml \
--var ci-image-tag="2.2.x" \
--var ci-image-tag="$branch" \
--var "branch=$branch" \
--var pipeline-name="$pipeline_name"
}