Last active
June 16, 2017 03:09
-
-
Save lox/13b30deb7cdc2b033ef77fe64d6f3469 to your computer and use it in GitHub Desktop.
Create a wrapper for buildkite-agent to source config from a custom credential management system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e -a | |
source /etc/my_secrets | |
exec /usr/bin/buildkite-agent "$@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a systemd drop-in that should be put in /etc/systemd/system/buildkite-agent.d/envfile.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/buildkite-agent-wrapper start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As of agent v2.6.4 you can write the below to /etc/default/buildkite-agent 🎉 | |
export BUILDKITE_AGENT=/usr/bin/buildkite-agent-wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment