Skip to content

Commit

Permalink
add pre-exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Harbuz committed Jul 27, 2023
1 parent c7d1a9c commit d34b00e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ fi
if [[ "$BUILDKITE_PIPELINE_SLUG" == "fleet-server-package-mbp" ]]; then
if [[ "$BUILDKITE_STEP_KEY" == "package-x86-64" || "$BUILDKITE_STEP_KEY" == "package-arm" || "$BUILDKITE_STEP_KEY" == "dra-snapshot" && "$BUILDKITE_STEP_KEY" == "dra-staging" ]]; then
unset GOOGLE_APPLICATIONS_CREDENTIALS
unset VAULT_ROLE_ID_SECRET
unset VAULT_ADDR_SECRET
unset VAULT_SECRET_ID_SECRET
docker logout ${DOCKER_REGISTRY}
cleanup
fi
Expand Down

0 comments on commit d34b00e

Please sign in to comment.