From d34b00e9eb8cdab39b6820efe5315956db362f2e Mon Sep 17 00:00:00 2001 From: Siarhei Harbuz Date: Thu, 27 Jul 2023 23:47:26 +0300 Subject: [PATCH] add pre-exit --- .buildkite/hooks/pre-exit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.buildkite/hooks/pre-exit b/.buildkite/hooks/pre-exit index fb4b5bc33..7535187a0 100755 --- a/.buildkite/hooks/pre-exit +++ b/.buildkite/hooks/pre-exit @@ -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