Skip to content

Commit 311b3b4

Browse files
committed
[ci] make plan patch optional for bump concourse
1 parent d059a02 commit 311b3b4

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ci/pipelines/bosh-bootloader.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ jobs:
975975
BBL_GCP_REGION: europe-north1
976976
BBL_ENV_NAME: bump-deployments-gcp-concourse
977977
BBL_STATE_DIR: bump-deployments/bbl-gcp-concourse
978+
BBL_PLAN_PATCH: spot-gcp
978979
DELETE_TERRAFORM_PLUGINS: false
979980
input_mapping:
980981
bbl-state: relint-envs

ci/tasks/bbl-up-concourse/task

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@ function main() {
2929
${name_flag} \
3030
--lb-type concourse > "${root_dir}/bbl_plan.txt"
3131

32-
cp -r ${root_dir}/bbl-ci/plan-patches/spot-gcp .
32+
# Apply plan patch if specified
33+
if [ -n "${BBL_PLAN_PATCH:-}" ]; then
34+
echo "Applying plan patch: ${BBL_PLAN_PATCH}"
35+
if [ -d "${root_dir}/bbl-ci/plan-patches/${BBL_PLAN_PATCH}" ]; then
36+
cp -r "${root_dir}/bbl-ci/plan-patches/${BBL_PLAN_PATCH}" .
37+
else
38+
echo "Warning: Plan patch '${BBL_PLAN_PATCH}' not found"
39+
exit 1
40+
fi
41+
fi
3342

3443
bbl --debug up \
3544
${name_flag} \

ci/tasks/bbl-up-concourse/task.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ params:
4141
BBL_IAAS:
4242
BBL_ENV_NAME:
4343
BBL_LB_TYPE: concourse
44+
BBL_PLAN_PATCH: # Optional: Plan patch directory name (e.g., "spot-gcp", "bosh-lite-gcp")
4445

4546
GIT_COMMIT_EMAIL: "[email protected]"
4647
GIT_COMMIT_USERNAME: "CI Infra Bot"

0 commit comments

Comments
 (0)