Skip to content

Commit

Permalink
make sure the directories exists before we dump files into them. fix #16
Browse files Browse the repository at this point in the history


Signed-off-by: Kai Xia <[email protected]>
  • Loading branch information
xiaket committed Oct 3, 2020
1 parent 048e025 commit 00b49ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ AWS_PARAMSTORE_SECRETS_DEFAULT_KEY="${AWS_PARAMSTORE_SECRETS_DEFAULT_KEY:-"globa
AWS_PARAMSTORE_SECRETS_SECRETS_PATH="${AWS_PARAMSTORE_SECRETS_PATH:-"/vendors/buildkite"}"
AWS_PARAMSTORE_SECRETS_GLOBAL_SSH="${AWS_PARAMSTORE_SECRETS_GLOBAL_SSH:-}"

mkdir -p /usr/local/buildkite-aws-stack/plugins/aws-paramstore-secrets
cat << EOF > /usr/local/buildkite-aws-stack/plugins/aws-paramstore-secrets/custom-defaults
export AWS_PARAMSTORE_SECRETS_VERBOSE="${AWS_PARAMSTORE_SECRETS_VERBOSE}"
export AWS_PARAMSTORE_SECRETS_DEFAULT_KEY="${AWS_PARAMSTORE_SECRETS_DEFAULT_KEY}"
Expand All @@ -17,6 +18,7 @@ export AWS_PARAMSTORE_SECRETS_GLOBAL_SSH="${AWS_PARAMSTORE_SECRETS_GLOBAL_SSH}"
EOF

# Install the hooks, repo first so pipeline can override the repo preset.
mkdir -p /etc/buildkite-agent/hooks
cat << 'EOF' >> /etc/buildkite-agent/hooks/environment
# --- Start AWS paramstore secrets plugin ---
Expand Down

0 comments on commit 00b49ec

Please sign in to comment.