https://github.com/keithduncan/kanikoctl-buildkite-plugin
Build Docker images using kaniko running in a separate container.
https://github.com/keithduncan/kanikoctl-buildkite-plugin
buildkite buildkite-plugin kaniko
Last synced: 1 day ago
JSON representation
Build Docker images using kaniko running in a separate container.
- Host: GitHub
- URL: https://github.com/keithduncan/kanikoctl-buildkite-plugin
- Owner: keithduncan
- License: bsd-3-clause
- Created: 2020-03-13T05:52:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T03:02:22.000Z (over 5 years ago)
- Last Synced: 2025-01-22T06:26:39.811Z (9 months ago)
- Topics: buildkite, buildkite-plugin, kaniko
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kanikoctl-buildkite-plugin
Build images using [GoogleContainerTools/kaniko](http://github.com/GoogleContainerTools/kaniko)
running in a separate container.See [keithduncan/kaniko-socat](https://github.com/keithduncan/kaniko-socat) for
a Docker image with the kaniko binaries and `socat` installed.See [keithduncan/buildkite-on-demand](https://github.com/keithduncan/buildkite-on-demand/tree/master/agent-composer#building-docker-images)
for an example of how to use this.## Plugin Parameters
* **[verbosity](https://github.com/GoogleContainerTools/kaniko#--verbosity)**:
Optional, one of: panic, fatal, error, warn, info, debug
* **[context_path](https://github.com/GoogleContainerTools/kaniko#kaniko-build-contexts)**:
a path relative to the [`BUILDKITE_BUILD_CHECKOUT_PATH`](https://buildkite.com/docs/pipelines/environment-variables#buildkite-environment-variables)
for the image context
* **dockerfile**: Optional, a path relative to the `context_path`
directory for the `Dockerfile`, defaults to `Dockerfile`.
* **[build_args](https://github.com/GoogleContainerTools/kaniko#--build-arg)**:
Optional, a list of strings e.g. 'COMMIT=01234sha' for `Dockerfile` ARG
instructions
* **[destination](https://github.com/GoogleContainerTools/kaniko#pushing-to-different-registries)**:
Optional, Docker image registry to push to the built image to. If absent the
image is built but not pushed. If no `tags` are specified the `latest` tag is
used by default.
* **tags**: Optional, list of strings, if `destination` is given the image is
pushed to these registry tags e.g. `tags: ['0.1.1', '0.1', '0']`. Tags also
supports a ref syntax: `tags: { Ref: version }` where `version` is
looked up using `buildkite-agent meta-data get version` and the string is
split on comma to generate a list of tags.## Example
```yaml
agents:
queue: your-on-demand-queuesteps:
- label: ":docker: :kangaroo:"
plugins:
- "keithduncan/kanikoctl#261d24e5f25e01ba0ee8f2b406c5ff7c260d2cc5":
destination: keithduncan/hello-world
agents:
task-definition: kaniko
task-role: DockerHubPublish
```