Skip to content

Commit 1fc5163

Browse files
committed
try out vault secret plugin
1 parent 55d750d commit 1fc5163

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.buildkite/build_pr_pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ steps:
22
- key: "build-pr-setup"
33
label: "setup"
44
command: ".buildkite/scripts/build_pr_commit_status.sh pending"
5+
plugins:
6+
- elastic/vault-secrets#v0.0.2:
7+
path: "secret/ci/elastic-docs/docker.elastic.co" #"secret/ci/elastic-docs/docs_preview_cleaner"
8+
field: "username" #"value"
9+
env_var: "DOCKER_USERNAME"
10+
511
- key: "build-pr"
612
label: ":hammer: Build docs PR"
713
command: echo "hello" #".buildkite/scripts/build_pr.sh"

.buildkite/scripts/build_pr_commit_status.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -euo pipefail
44

5+
echo $DOCKER_USERNAME
6+
57
# This hook should only be invoked for builds triggered by the Buildkite PR bot
68
if [ -z ${GITHUB_PR_OWNER+set} ] || [ -z ${GITHUB_PR_REPO+set} ] || [ -z ${GITHUB_PR_TRIGGERED_SHA+set} ];then
79
exit 0

0 commit comments

Comments
 (0)