[precompiled]: rebuild/overwrite the image even if the tag already exists#860
[precompiled]: rebuild/overwrite the image even if the tag already exists#860shivakunv wants to merge 1 commit into
Conversation
…ists Signed-off-by: Shiva Kumar (SW-CLOUD) <shivaku@nvidia.com>
|
Let's not do this. We never want to overwrite tags. If there are CVE fixes, they will be carried in the next precompiled driver image. This is how it works for non-precompiled images as well. |
Why force write is necessary
If you agree, I will add an vuln exception for this CVE and proceed with releasing the precompiled driver container. We can address the CVE in the next release. Please let me know your suggestion. |
Add FORCE_PUSH override to overwrite already-published precompiled images
Issue: When a CVE is found during a release and the precompiled image is already published, the pipelines skip re-pushing because the image tag already exists. If no new kernel has been released, there is no way to rebuild and overwrite the fixed image
Solution: Write the existing FORCE_PUSH into both scheduled pipelines(github and gitlab) so it can be toggled via a CI/CD variable.
Setting FORCE_PUSH=true forces a rebuild, e2e test, and overwrite of the existing tag.
Unset keeps the normal skip.