taughz/Docker HN2B

How Not To Build Docker Images

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
imageThe target image `repo:tag` name. The tag is optional, and if given, the resulting image will be additionally tagged with that tag. The image will always be tagged with the generated tag, regardless of the given tag.yes
contextA directory to use as the Docker build context. The Dockerfile must also be located somewhere within this directory. The path can be relative to the current working directory, typically the root of the repository.yes
dockerfileThe Dockerfile to use for the build. The path can be relative to the current working directory, typically the root of the repository.noDockerfile
base-imageThe optional base image `repo:tag` name. If given, this will be supplied as a Docker build argument BASE_IMAGE. It will also participate in tag generation.no""
build-argsThe optional arguments to supply to the Docker build. They will also participate in tag generation. (All build arguments will actually be appended to the build context in a special file `.buildargs`.)no""
secretsThe secrets to supply to the Docker build. They will not participate in tag generation.no""
sub-build-argsOptional secondary build arguments to supply to the Docker build. They will not participate in tag generation. (Don't use this unless you know what you're doing.)no""
sub-contextsOptional secondary Docker build context. Each directory will get injected into the main build context under the 'subcontext' directory, but these directories will not participate in tag generation. (Don't use this unless you know what you're doing.)no""
only-pullOnly attempt to pull the image. Do not build the image.nofalse
skip-pullCheck if the image is available on the registry as usual, but if it is available, don't actually pull the image.nofalse
pushPush the container after building.nofalse
registry-userThe user to use in authenticating to the Docker registry.no${{ github.actor }}
registry-passThe password (or token) to use in authenticating to the Docker registry.no""
no-cacheForce a rebuild of the image, and do not use cache.nofalse
name-onlyOnly generate the tag, and print the resulting image name. Do not actually build the image.nofalse
namedescription
imageThe generated image `repo:tag` name.
had-imageTrue if the image is loaded in Docker, and it was either already loaded, pulled from the registry, or built; false otherwise.
had-remote-imageTrue if the image is available on the registry, false otherwise.
was-pulledTrue if the image was pulled, false otherwise.
was-builtTrue if the image was built, false otherwise.