https://github.com/tomowatt/buildkite-agent-with-agent-hooks-demo
Example of building an Buildkite Agent Image with Agent Plugins
https://github.com/tomowatt/buildkite-agent-with-agent-hooks-demo
buildkite buildkite-agent buildkite-p
Last synced: 7 months ago
JSON representation
Example of building an Buildkite Agent Image with Agent Plugins
- Host: GitHub
- URL: https://github.com/tomowatt/buildkite-agent-with-agent-hooks-demo
- Owner: tomowatt
- License: mit
- Created: 2023-11-24T11:02:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T17:18:54.000Z (over 1 year ago)
- Last Synced: 2025-01-16T22:45:55.258Z (9 months ago)
- Topics: buildkite, buildkite-agent, buildkite-p
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buildkite-agent-with-agent-hooks-demo
## About
Demonstration of creating a Buildkite Agent Container image and including Agent Hooks for use on Kubernetes.
## Example
Manually running a Pod with the pre-built container image from this repository with agent plugins. Recommended approached for Buildkite Agent Token is to use Secrets.
```bash
kubectl run k8s-agent-with-hooks -i --tty --image ghcr.io/tomowatt/buildkite-agent-with-agent-hooks-demo:main -- start --token "{AGENT TOKEN}" --tags "queue=k8s-agent-with-hooks"
```Then using a Pipeline configuration like below to show Agent Plugins being used.
```yaml
steps:
- label: ":tada:"
command: echo "hello from k8s agent"
agents:
queue: "k8s-agent-with-hooks"
```To clean up.
```bash
kubectl delete pod k8s-agent-with-hooks
```