-
Notifications
You must be signed in to change notification settings - Fork 54
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
Expire commit container images after 1 week #402
Conversation
Well that's a bit weird! Do you think we should use the buildah image in our CI[1], or stick with this approach which allows us to keep the core build logic in our Makefile? |
I think this is a fine workaround. I'm aware of the buildah step that is used in preflight, but I personally like better to build all our images using the make target ("keep the core build logic in our Makefile" as you well put it).
So there is a performance hit for using this flag, which IMO is acceptable. If we think this it too annoying (e.g. we run Makefile:
and in build.yaml:
But I'm not sure this is even necessary... Building images is mostly done is the pipeline, and it's okay if it takes one more minute IMO. |
FYI I just amended the commit to improve the readability of the make target with line breaks. |
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.
Overall LGTM, but just one more thing to try before we commit to using --no-cache
to work around this bug.
Prior to podman 4.6.0, there is a bug that would cause the expiration tag to be added to the "main" container image as well in the main.yaml workflow. See the buildah bug report: containers/buildah#4632 As a workaround, the --no-cache flag is used to build container images with the "build-image" make target. This workaround, can be removed when we use a runner image that has podman>=4.6.0. Currently, the ubuntu-latest runner image is currently based on Ubuntu 22.04 and had podman 3.4.4. close redhat-certification#397 Signed-off-by: mgoerens <[email protected]>
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.
/lgtm
Prior to podman 4.6.0, there is a bug that would cause the expiration tag to be added to the "main" container image as well in the build.yaml workflow. See the buildah bug report:
containers/buildah#4632
As a workaround, the --no-cache flag is used to build container images with the "build-image" make target.
This workaround, can be removed when we use a runner image that has podman>=4.6.0. Currently, the ubuntu-latest runner image we use has 3.4.4.
close #397