-
Notifications
You must be signed in to change notification settings - Fork 3
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
IT-3421: Build just before pushing image #5
Conversation
…which doesn't seem to be used
…age and push together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as Sage-Bionetworks-IT/notebook-reverse-proxy#10
I'm fine with building twice, but there are also docker save
and docker load
commands if you want to try them.
Thanks for this suggestion. While |
Previously the workflow (1) built the Docker image, (2) saved as a tar-blob, (3) scanned (using Trivy), (4) reload the tar-blob as an image and pushed the image to
ghcr.io
. However it turns out that when a tar-blob is reloaded, crucial metadata about the image is lost. One discussion on the topic is here.. The fix is to build the image just before pushing (with no save/load in between). Building the image twice makes the workflow less efficient but it works.