GitHub Action to build and push Docker images with Buildx
getExecOutput
(#392)core.getBooleanInput
(#391)docker/metadata-action
(#354)network
input for backward compatibility (#338)secret-files
input to be able to use secret file mount (#296)file
flag (#244)ssh
input (#123)v2
of this action includes significant changes and now uses Docker Buildx. It extends the docker build
command named buildx with the full support of the features provided by Moby BuildKit builder toolkit. This includes multi-arch build, build-secrets, remote cache, etc. and different builder deployment/namespacing options.
It works with 3 new actions (login, setup-buildx and setup-qemu) that we have created. It's also rewritten as a typescript-action to be as closed as possible of the GitHub Runner during its execution (#71 #92).
Upgrade notes and many usage examples have been added to handle most use cases.
path
is now called context
for consistency with other Docker build toolspath
defaults to current git repository so checkout action is not required in a workflowdockerfile
input to file
for consistency with other Docker build toolsalways_pull
input to pull
for consistency with other Docker build toolsbuilder
input to be able to choose a builder instance through our setup-buildx action
platforms
input to support multi-platform buildsallow
inputload
inputoutputs
inputcache-from
input (cache_froms
removed)cache-to
inputsecrets
inputtags
inputrepository
input. See Simple workflow for migrationusername
, password
and registry
inputs. Login support moved to docker/login-action repotag_with_sha
, tag_with_ref
, add_git_labels
inputs. See Tags with ref and Git labels for migrationdigest
output