github docker/build-push-action v2.0.0

latest releases: v5.3.0, v5, v5.2.0...
3 years ago

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.

  • Input path is now called context for consistency with other Docker build tools
  • path defaults to current git repository so checkout action is not required in a workflow
  • Rename dockerfile input to file for consistency with other Docker build tools
  • Rename always_pull input to pull for consistency with other Docker build tools
  • Add builder input to be able to choose a builder instance through our setup-buildx action
  • Add platforms input to support multi-platform builds
  • Add allow input
  • Add load input
  • Add outputs input
  • Add cache-from input (cache_froms removed)
  • Add cache-to input
  • Add secrets input
  • Review tags input
  • Remove repository input. See Simple workflow for migration
  • Remove username, password and registry inputs. Login support moved to docker/login-action repo
  • Remove tag_with_sha, tag_with_ref, add_git_labels inputs. See Tags with ref and Git labels for migration
  • Handle Git context
  • Add digest output

Don't miss a new build-push-action release

NewReleases is sending notifications on new releases.