https://github.com/sj26/setup-crane-buildkite-plugin
Installs crane for use in Buildkite builds
https://github.com/sj26/setup-crane-buildkite-plugin
buildkite buildkite-plugin containers docker
Last synced: 6 months ago
JSON representation
Installs crane for use in Buildkite builds
- Host: GitHub
- URL: https://github.com/sj26/setup-crane-buildkite-plugin
- Owner: sj26
- License: mit
- Created: 2024-02-04T06:15:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-16T04:02:55.000Z (over 1 year ago)
- Last Synced: 2025-03-28T11:29:56.997Z (7 months ago)
- Topics: buildkite, buildkite-plugin, containers, docker
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup Crane
Installs [`crane`](https://github.com/google/go-containerregistry/tree/main/cmd/crane) for use in [Buildkite]() builds.
## Example
```yaml
steps:
- name: Copy docker image
plugins:
- sj26/setup-crane
command: crane copy "$SOURCE" "$TARGET"
```Works well in combination with other plugins like [docker compose](https://github.com/buildkite-plugins/docker-compose-buildkite-plugin) which can build and push images and [ecr](https://github.com/buildkite-plugins/ecr-buildkite-plugin) which logs in to registries.
## Select crane version to install
By default, the latest released version of crane will be installed.
You can select a version with the version parameter:
```yaml
steps:
- plugins:
- sj26/setup-crane:
version: v0.5.1
command: crane version
```## Thanks
Inspired by the [setup-crane](https://github.com/imjasonh/setup-crane) GitHub Action.