mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* [artifacts] Skip publish if untracked branch
* fix conditional
(cherry picked from commit 620b759dae
)
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
parent
e682c029d4
commit
4c9a7d493f
1 changed files with 26 additions and 21 deletions
|
@ -51,6 +51,7 @@ trap 'docker logout docker.elastic.co' EXIT
|
|||
docker pull docker.elastic.co/infra/release-manager:latest
|
||||
|
||||
echo "--- Publish artifacts"
|
||||
if [[ "$BUILDKITE_BRANCH" == "$KIBANA_BASE_BRANCH" ]]; then
|
||||
export VAULT_ROLE_ID="$(retry 5 15 gcloud secrets versions access latest --secret=kibana-buildkite-vault-role-id)"
|
||||
export VAULT_SECRET_ID="$(retry 5 15 gcloud secrets versions access latest --secret=kibana-buildkite-vault-secret-id)"
|
||||
export VAULT_ADDR="https://secrets.elastic.co:8200"
|
||||
|
@ -78,3 +79,7 @@ cat << EOF | buildkite-agent annotate --style "info" --context artifacts-summary
|
|||
|
||||
$ARTIFACTS_SUMMARY
|
||||
EOF
|
||||
|
||||
else
|
||||
echo "Skipping publish for untracked branch $BUILDKITE_BRANCH"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue