You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 scenario build-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 and build-push-action to push the image our internal registry, however, it was not as easy as I expected. I continue to receive failed to read dockerfile: open Dockerfile: no such file or directory. Is there a way to use docker/build-push-action to only push and not build the image?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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