build-push-action: v2: docker driver doesn't support auto-push
I’m experimenting with the v2 branch and ran into an issue with the basic use case below. Notice it’s using the default builder (no setup-buildx-action step) with the docker driver.
jobs:
build:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.USER }}
password: ${{ secrets.PASSWORD }}
- uses: docker/build-push-action@v2-build-push
with:
context: .
tags: ${{ env.REGISTRY }}/myapp:latest
push: true
The output for the build step is:
Run docker/build-push-action@v2-build-push
📣 Buildx version: 0.4.2
🏃 Starting build...
/usr/bin/docker buildx build --tag myregistry.io/myapp:latest --iidfile /tmp/docker-build-push-Ghos6S/iidfile --file ./Dockerfile --push .
auto-push is currently not implemented for docker driver
##[error]The process '/usr/bin/docker' failed with exit code 1
I realize the error is coming from buildx upstream, but considering this action is called “build-push”, I think users would expect this functionality to be implemented by the action if the underlying tool doesn’t support it — or at least have a large warning in the README. My use case is more complex than this example, and part of the appeal of this action is that it seamlessly handles pushing a dynamic number of tags.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 17
- Comments: 17 (9 by maintainers)
Commits related to this issue
- add buildx forr push cf. https://github.com/docker/build-push-action/issues/100 https://github.com/X-Wei/pelican-gh-actions-xwei/issues/2 — committed to X-Wei/pelican-gh-actions-xwei by X-Wei 4 years ago
- Revised: See https://github.com/docker/build-push-action/issues/100#issuecomment-715352826 — committed to DazWilkin/akri-http by DazWilkin 4 years ago
- NXDRIVE-2401: Upgrade the Docker build workflow to the new action version See https://github.com/docker/build-push-action/issues/100 for details. — committed to nuxeo/nuxeo-drive by deleted user 4 years ago
- NXDRIVE-2401: Upgrade the Docker build workflow to the new action version See https://github.com/docker/build-push-action/issues/100 for details. — committed to nuxeo/nuxeo-drive by deleted user 4 years ago
- NXDRIVE-2401: Upgrade the Docker build workflow to the new action version See https://github.com/docker/build-push-action/issues/100 for details. — committed to nuxeo/nuxeo-drive by deleted user 4 years ago
- NXDRIVE-2401: Upgrade the Docker build workflow to the new action version See https://github.com/docker/build-push-action/issues/100 for details. — committed to nuxeo/nuxeo-drive by deleted user 4 years ago
- NXDRIVE-2401: Upgrade the Docker build workflow to the new action version See https://github.com/docker/build-push-action/issues/100 for details. — committed to nuxeo/nuxeo-drive by deleted user 4 years ago
- NXDRIVE-2401: Upgrade the Docker build workflow to the new action version See https://github.com/docker/build-push-action/issues/100 for details. — committed to nuxeo/nuxeo-drive by deleted user 4 years ago
- ci: follow comment on docker/build-push-action/issues/100 — committed to rubencabrera/dinaip-linux-shell by rubencabrera 4 years ago
- manully push due to the driver not support auto-push ref: docker/build-push-action#100 — committed to s-build/v2ray by runchard 4 years ago
- try extract data from builder in Dockerfile (#6) * try extract data from builder in Dockerfile * tempororily build by commit * use . for container * revert the image name * separate build... — committed to s-build/v2ray by runchard 4 years ago
- Using step 1 from https://github.com/docker/build-push-action/issues/100 — committed to petbattle/tournamentservice by noelo 4 years ago
- Buildx has issues, trying manual way Error: buildx call failed with: auto-push is currently not implemented for docker driver docker-build action is having open issue https://github.com/docker/build... — committed to CoCreate-app/CoCreateWS by bharat-rajani 4 years ago
- generate aliases for snapshots — committed to angelnu/RaspberryMatic by angelnu 3 years ago
- Update upload.yml https://github.com/docker/build-push-action/issues/100#issuecomment-715352826 — committed to prince-chrismc/user-management by prince-chrismc 3 years ago
- Use setup-buildx-action To work around push error https://github.com/docker/build-push-action/issues/100#issuecomment-715352826 — committed to ou-astrophysics/vespa by adammcmaster 3 years ago
- :bug: :link: Separate front-end from FQDN + Fix front-end Etag handling + Stabilize CI (#52) * Update package.json * Update package.json * Update upload.yml * Create Dockerfile * Update u... — committed to prince-chrismc/user-management by prince-chrismc 3 years ago
- (chore) address docker/build-push-action/issues/100#issuecomment-715352826 — committed to denzuko/io.rearc.quest by denzuko 3 years ago
- Update docker push action to fix build https://github.com/docker/build-push-action/issues/100 — committed to abitrolly/kaitai_struct_visualizer by abitrolly 3 years ago
- Update docker push action to fix build https://github.com/docker/build-push-action/issues/100 — committed to kaitai-io/kaitai_struct_visualizer by abitrolly 3 years ago
You have three possibilities atm (the first one being the more straightforward).
With docker-container driver (via
setup-buildx)With docker driver (without
setup-buildx)With docker driver (with
setup-buildx)@crazy-max It doesn’t look like this issue has been fixed yet.
https://github.com/docker/buildx/pull/442
The result is the same with the
setup-buildxstep.Again, I know this is an upstream limitation, but I believe it makes sense for
docker/build-push-actionto support this basic use case despite buildx’s lack of support for it.I agree. I really like the decision to extract login and setup from v2. 👍
In this case, the environment is already set up to use the docker driver. I don’t expect this action to change that setup. I do expect an action called
docker/build-push-actionto be able to push images built with docker.Thanks for considering, and great work with v2 so far!
Ubuntu virtual environments have been updated and now use Buildx 0.5.1 so it should be available through docker/buildx#442.
@veerendra2 https://github.com/docker/build-push-action#upgrade-from-v1 https://github.com/docker/build-push-action/blob/master/UPGRADE.md
wow, seems
v1is easy to use, I can login, build and push in single step.I started trying to use v2 to get rid of warning, did I miss anything?