Skip to content

Commit

Permalink
buildkite: prepare ES credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Oct 19, 2023
1 parent 9d5ccc7 commit 60733ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .buildkite/hooks/prepare-benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail

echo "--- Prepare elasticsearch secrets :vault:"
ES_URL_SECRET=$(vault read -field=es_url secret/ci/elastic-apm-agent-java/opentelemetry-benchmark)
ES_USER_SECRET=$(vault read -field=es_user secret/ci/elastic-apm-agent-java/opentelemetry-benchmark)
ES_PASS_SECRET=$(vault read -field=es_pass secret/ci/elastic-apm-agent-java/opentelemetry-benchmark)
export ES_URL_SECRET ES_USER_SECRET ES_PASS_SECRET

echo "--- Prepare github secrets :vault:"
GITHUB_SECRET=$(vault kv get -field token "kv/ci-shared/observability-ci/github-apmmachine")
GH_TOKEN=$GITHUB_SECRET
Expand Down

0 comments on commit 60733ec

Please sign in to comment.