djbender/Docker Buildx Pull or Build

Pull an image or optionally build it with buildx

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Aug 25, 2020
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: djbender/docker-buildx-pull-or-build@fce252fd09be7c61ce95c04afaf73e90a09a742b # v0.5

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
docker_passwordThe password to authenticate with the registry. Required if `docker_config_json` is blank.
docker_registry
docker_usernameThe username to authenticate with the registry. Required if `docker_config_json` is blank.
dockerfileThe Dockerfile to build when the remote image is not available.yes
imageThe image name that this action will either 1) pull 2) build and push.yes
image_cacheOptionally specify an image cache name. Default: `<image>:cache`
living_tagSkip the initial `docker pull` because this tag is not immutable (i.e.: `latest`, `stable-1.0`). Default: `'false'`false
docker_config_jsonOptionally 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\"}}}"`.
cacheOptionally toggle all caching mechanisms. Default: `'true'`true
build_argsOptionally pass in comma-separated build args. Default: `''`
namedescription
image_idImage ID