Skip to content

Instantly share code, notes, and snippets.

@DavidGregory084
Created April 27, 2019 02:54
Show Gist options
  • Save DavidGregory084/b3166d113ab81d13e49cbc296aadfffa to your computer and use it in GitHub Desktop.
Save DavidGregory084/b3166d113ab81d13e49cbc296aadfffa to your computer and use it in GitHub Desktop.
#cloud-config
apt:
sources:
buildkite-agent.list:
source: "deb https://apt.buildkite.com/buildkite-agent stable main"
keyid: 6452D198
sbt.list:
source: "deb https://dl.bintray.com/sbt/debian /"
keyid: 642AC823
nodesource.list:
source: "deb https://deb.nodesource.com/node_11.x xenial main"
keyid: "68576280"
packages:
- buildkite-agent
- openjdk-8-jdk
- nodejs
- sbt
runcmd:
- [ sed, -i, "s/xxx/<buildkite-token>/g", /etc/buildkite-agent/buildkite-agent.cfg ]
- [ cp , /lib/systemd/system/buildkite-agent.service, /etc/systemd/system/buildkite-agent@.service ]
- [ systemctl, enable, --now, buildkite-agent@1 ]
- [ systemctl, enable, --now, buildkite-agent@2 ]
- [ systemctl, enable, --now, buildkite-agent@3 ]
- [ systemctl, enable, --now, buildkite-agent@4 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment