Name: heroku-buildkite-agent
Owner: Buildkite
Description: A sample Heroku app for running the Buildkite agent on Heroku dynos
Created: 2015-02-27 03:09:27.0
Updated: 2017-10-17 01:42:48.0
Pushed: 2017-04-10 02:16:51.0
Homepage: null
Size: 5988
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
An example of running the buildkite-agent on a Heroku dyno using the buildkite-agent build pack.
The agent will run with heroku=true
metadata applied.
Press the button above, provide your agent token, then hit “Deploy”. Once it's
deployed, click on “Manage App” and scale up the agent
process to at least 1.
You should see your Buildkite agent dashboard register the new agent.
To set it up on Heroku manually without the button, follow these instructions instead:
eate a dyno
roku create my-buildkite-agent \
--buildpack https://github.com/buildkite/heroku-buildkite-agent-buildpack.git
t in your token and any metadata for targeting the agents
roku config:set BUILDKITE_AGENT_TOKEN=xxx \
BUILDKITE_AGENT_META_DATA=key1=val2,key2=val2
ocket:
t push heroku master
in up an agent on a 1x dyno
roku scale ci=1
il the logs
roku logs -t
in up an squadron of 2x ci dynos
roku scale ci=24:2X
You can also run this example on Dokku, a self-hosted Heroku alternative.
To deploy to a Dokku server:
On the Dokku server
eate an app
kku apps:create buildkite
t the required variables
kku config:set BUILDPACK_URL=https://github.com/buildkite/heroku-buildkite-agent-buildpack.git \
BUILDKITE_AGENT_TOKEN=xxx
u can optionally include environment variables such as BUILDKITE_AGENT_NAME (see package.json for full list)
On your computer
d the Dokku server as a git remote
t remote add dokku root@your.dokku.server:buildkite
tionally modify the DOKKU_SCALE file to spin up multiple agents
sh the repo to Dokku to trigger the deploy
t push dokku
You can fork this repo and add your own hooks into a directory specified by a BUILDKITE_HOOKS_PATH
var you set.
MIT