Skip to content

Commit

Permalink
allow 'Publish artifacts' step also if DRY_RUN is active, publish wou…
Browse files Browse the repository at this point in the history
…ld be prevented by the dry_run flag
  • Loading branch information
delanni committed Jul 10, 2024
1 parent e169722 commit f64939d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .buildkite/scripts/steps/artifacts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

set -euo pipefail

source env.env
source .buildkite/scripts/common/util.sh
source .buildkite/scripts/steps/artifacts/env.sh

Expand Down Expand Up @@ -55,7 +54,7 @@ echo "--- Pull latest Release Manager CLI"
docker pull docker.elastic.co/infra/release-manager:latest

echo "--- Publish artifacts"
if [[ "$BUILDKITE_BRANCH" == "$KIBANA_BASE_BRANCH" ]]; then
if [[ "$BUILDKITE_BRANCH" == "$KIBANA_BASE_BRANCH" ]] || [[ "${DRY_RUN:-}" =~ ^(1|true)$ ]]; then
export VAULT_ROLE_ID="$(get_vault_role_id)"
export VAULT_SECRET_ID="$(get_vault_secret_id)"
export VAULT_ADDR="https://secrets.elastic.co:8200"
Expand Down

0 comments on commit f64939d

Please sign in to comment.