Skip to content

Commit

Permalink
Fix dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gr committed Jul 14, 2023
1 parent 349cd44 commit 1cbeb8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .buildkite/scripts/steps/dra-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ source .buildkite/scripts/bootstrap.sh
function run_release_manager() {
echo "+++ Publishing $BUILDKITE_BRANCH ${WORKFLOW} DRA artifacts..."
dry_run=""
if [ "$BUILDKITE_PULL_REQUEST" != "false" || "$FORCE_NO_DRY_RUN" == "true"]; then
if [ "$BUILDKITE_PULL_REQUEST" != "false" ]; then
dry_run="--dry-run"
# force main branch on PR's or it won't execute
# because the PR branch does not have a project folder in release-manager
BRANCH=main
fi
if [ "$FORCE_NO_DRA_DRY_RUN" == "true" ]; then
dry_run=""
fi
docker run --rm \
--name release-manager \
-e VAULT_ADDR="${VAULT_ADDR}" \
Expand Down

0 comments on commit 1cbeb8d

Please sign in to comment.