Skip to content

Commit

Permalink
Update the hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros, Sapranidis <[email protected]>
  • Loading branch information
alexsapran committed Jul 14, 2023
1 parent 6dba467 commit 33f88dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .buildkite/hooks/pre-command
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-package" ]]; then
if [[ "$BUILDKITE_STEP_KEY" == "dra-publish" ]]; then
echo "+++ Setting DRA params"
DRA_SECRET=$(vault kv get -field=data -format=json kv/ci-shared/release/dra-role)
export DRA_SECRET
VAULT_ADDR_SECRET=$(echo DRA_SECRET | jq -r '.vault_addr')
VAULT_ROLE_ID_SECRET=$(echo DRA_SECRET | jq -r '.role_id')
VAULT_SECRET_ID_SECRET=$(echo DRA_SECRET | jq -r '.secret_id')
export VAULT_ADDR_SECRET VAULT_ROLE_ID_SECRET VAULT_SECRET_ID_SECRET
unset DRA_SECRET
fi
fi

Expand Down
Empty file modified .buildkite/hooks/pre-exit
100644 → 100755
Empty file.

0 comments on commit 33f88dc

Please sign in to comment.