-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Save and Push #727
Comments
This looks similar to moby/buildkit#2760 - currently multiple exporters aren't supported. You can work around this today by creating multiple invocations of the |
@jedevc I followed your idea but, although it uses the cached layers, thus speeding up the process, it still produces "different" images. |
It would be nice to have an option to save the image as an artifact. Just to remove the extra duplicated YML to run Docker build twice. Sure, could move that job to a reusable workflow, but that just adds more complexity. |
Is this possible now that moby/buildkit#4134 has merged? |
Will be with next Buildx 0.13 and BuildKit 0.13. |
@crazy-max I tried using this Github actions configuration but still got the error
Setting up successfully: Fail message:
|
@tonynajjar Thanks for trying this out! I'm looking at it and keep you posted. |
Ok after looking at it we indeed forgot to handle the
|
@tonynajjar Can you try with this step and let us know?: - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: https://github.com/crazy-max/buildx.git#multi-load-push
driver-opts: image=moby/buildkit:v0.13.0-rc3 |
on it EDIT: I'm affected by https://www.githubstatus.com/incidents/wcl1sw4mzg60 so it might take a bit longer |
From my very basic test looks like it works! 🚀 |
@tonynajjar Just made some tests in this repo as well and looks good: #1075 |
May someone provide an example of the original configuration in question? Is this correct? uses: docker/build-push-action@v5
with:
push: true
outputs: |
docker,dest=image.tar
push: true |
I would like to be able to use this action to build a docker image, and then both save the image locally AND push it to a container registry. I want to be able to perform other actions on the image like a container image scan as a part of my CI workflow. Currently, I am only able to give either
push: true
ORoutputs: type=docker,dest=/tmp/myimage.tar
meaning that I have to do one of the following:Ideally I would just like to use this action to build my image and push it to the container registry, while retaining a local file for use in other jobs.
The text was updated successfully, but these errors were encountered: