Skip to content

Commit

Permalink
[Ops] Propagate DRY_RUN to gpctl-promote (#178658)
Browse files Browse the repository at this point in the history
## Summary
We've had some issues with the weekly scheduled serverless release after
we've switched to a direct trigger to `gpctl-promote`.

Although we've tried a few options, and we've probably found the
solution, but we can still go for sure, and try a dry-run cross trigger.
This wasn't possible before, but
elastic/gpctl#261 should now respect DRY_RUN env
vars coming in.

This PR propagates those variables, so we can test the setup.
  • Loading branch information
delanni authored Mar 14, 2024
1 parent a2b100c commit 52ff9b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipelines/emergency_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ steps:
env:
REMOTE_SERVICE_CONFIG: "${EMERGENCY_RELEASE_REMOTE_SERVICE_CONFIG}"
SERVICE_COMMIT_HASH: "${VERSION}"
DRY_RUN: "${DRY_RUN:-false}"
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function uploadTriggerStep(commitSha: string) {
env: {
SERVICE_COMMIT_HASH: commitSha.slice(0, 12),
REMOTE_SERVICE_CONFIG,
...(IS_DRY_RUN ? { DRY_RUN: 'true' } : {}),
},
},
};
Expand Down
1 change: 1 addition & 0 deletions .buildkite/scripts/steps/artifacts/docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ steps:
SERVICE_COMMIT_HASH: "$GIT_ABBREV_COMMIT"
SERVICE: kibana
REMOTE_SERVICE_CONFIG: https://raw.githubusercontent.com/elastic/serverless-gitops/main/gen/gpctl/kibana/dev.yaml
DRY_RUN: "${DRY_RUN:-false}"
EOF

else
Expand Down

0 comments on commit 52ff9b0

Please sign in to comment.