djbender/Docker Buildx Pull or Build
Pull an image or optionally build it with buildx
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 25, 2020
- License
- None
Pinned Snippet
uses: djbender/docker-buildx-pull-or-build@fce252fd09be7c61ce95c04afaf73e90a09a742b # v0.5tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| docker_password | The password to authenticate with the registry. Required if `docker_config_json` is blank. | — | — |
| docker_registry | — | — | — |
| docker_username | The username to authenticate with the registry. Required if `docker_config_json` is blank. | — | — |
| dockerfile | The Dockerfile to build when the remote image is not available. | yes | — |
| image | The image name that this action will either 1) pull 2) build and push. | yes | — |
| image_cache | Optionally specify an image cache name. Default: `<image>:cache` | — | — |
| living_tag | Skip the initial `docker pull` because this tag is not immutable (i.e.: `latest`, `stable-1.0`). Default: `'false'` | — | false |
| docker_config_json | Optionally authenticate with existing stored credentials by serializing `~/.docker/config.json`. If present, this will override the `docker_username` and `docker_password` inputs. E.g.: `$(cat ~/.docker/config.json)` or `"{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"SEKRET\"}}}"`. | — | — |
| cache | Optionally toggle all caching mechanisms. Default: `'true'` | — | true |
| build_args | Optionally pass in comma-separated build args. Default: `''` | — | — |
Outputs
| name | description |
|---|---|
| image_id | Image ID |