Skip to content

Commit

Permalink
Merge pull request #17 from mikeknox/fix-missing-dir
Browse files Browse the repository at this point in the history
make sure the directories exists before we dump files into them. fix #16
  • Loading branch information
mikeknox authored Oct 3, 2020
2 parents 048e025 + 00b49ec commit b2f5160
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 b2f5160

Please sign in to comment.