_That's it!_ This workflow will inspect and copy the `ubuntu` image to your repo's GitHub container registry namespace.
The action works on Linux and macOS [runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners).
### Select `crane` version to install
By default, `imjasonh/setup-crane` installs the latest released version of `crane`.
You can select a version with the `version` parameter:
```yaml
- uses: imjasonh/setup-crane@v0.1
with:
version: v0.5.1
```
To build and install `crane` from source using `go get`, specify `version: tip`.
### Pushing to other registries
By default, `imjasonh/setup-crane` configures `crane` to authorize requests to [GitHub Container Registry](https://ghcr.io), but you can configure it to useuse other registries as well.
To do this, you need to provide credentials to authorize the push.
You can use [encrypted secrets](https://docs.github.com/en/actions/reference/encrypted-secrets) to store the authorization token, and pass it to `crane auth login` before pushing:
The `@v0.1` in the `uses` statement refers to the version _of the action definition in this repo._
Regardless of what version of the action definition you use, `imjasonh/setup-crane` will install the latest released version of `crane` unless otherwise specified with `version:`.