https://github.com/fly-apps/buildkite-agent
Run a Buildkite agent on Fly with disk caching
https://github.com/fly-apps/buildkite-agent
Last synced: 4 months ago
JSON representation
Run a Buildkite agent on Fly with disk caching
- Host: GitHub
- URL: https://github.com/fly-apps/buildkite-agent
- Owner: fly-apps
- Created: 2020-11-06T02:41:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-06T02:42:16.000Z (over 5 years ago)
- Last Synced: 2025-01-17T18:56:51.996Z (over 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Buildkite Agent WIP
This runs a Buildkite agent with Docker. It usesa persistent volume for Docker layer caching.
We use this for giant Rust builds.
```
flyctl apps create buildkite-example
```
Set the Buildkite token so the agent knows which account it's talking to.
```
flyctl secrets set BUILDKITE_AGENT_TOKEN=
```
We're going to do builds from GitHub, so we also add a build account's private key as a Fly secret. This is added to the `ssh-agent` in the [environment hook](./hooks/environment).
```
flyctl secrets set PRIVATE_SSH_KEY=- < ~/.ssh/github_private_ssh_key
```
```
flyctl volumes create buildkite_cache --region ord --size 50
```
```toml
[mount]
source = "buildkite_cache"
destination = "/data"
[env]
BUILDKITE_BUILD_PATH = "/data/buildkite_builds"
```