Push without building? #1208
jamesbradlee
started this conversation in
General
Replies: 1 comment
-
Same here. I wanted to build my image, run it through a trivy scan and then just push it when it the scan was alright. But this seem to not work and the example in the docker docs is not really helpful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two separate jobs for building and publishing a container image:
The
Boot Image
job creates the image, exports it to a tar and uploads it to the job artifacts, I have some jobs that need to run inbetween the build and publishing jobs, such as scanning the image for vulnerabilities, creating a Software Bill Of Materials from the image, and creating an attestation on the generated SBOM, etc.On the publishing job I used to just push the image using
docker push
, which worked perfectly. But I have some jobs I need to run after the image is published which also needs to consume the published container image digest, in which scenariobuild-push-action
would work amazingly because that digest is captured and exported through the step outputs.I thought I could just download the artifact,
docker load -i
the tar file andbuild-push-action
to push the image our internal registry, however, it was not as easy as I expected. I continue to receivefailed to read dockerfile: open Dockerfile: no such file or directory
. Is there a way to usedocker/build-push-action
to only push and not build the image?Here is my publishing workflow steps:
Beta Was this translation helpful? Give feedback.
All reactions