From f64939d3f1bf52c71318f99cb0f7d8efd3e3c3bf Mon Sep 17 00:00:00 2001 From: Alex Szabo Date: Wed, 10 Jul 2024 18:28:28 +0200 Subject: [PATCH] allow 'Publish artifacts' step also if DRY_RUN is active, publish would be prevented by the dry_run flag --- .buildkite/scripts/steps/artifacts/publish.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.buildkite/scripts/steps/artifacts/publish.sh b/.buildkite/scripts/steps/artifacts/publish.sh index 0d40ed2430eb3..8735a3e8757ed 100644 --- a/.buildkite/scripts/steps/artifacts/publish.sh +++ b/.buildkite/scripts/steps/artifacts/publish.sh @@ -2,7 +2,6 @@ set -euo pipefail -source env.env source .buildkite/scripts/common/util.sh source .buildkite/scripts/steps/artifacts/env.sh @@ -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"