Skip to content
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

can I change metadata without a new build?_ #5555

Open
hsenol1 opened this issue May 30, 2024 · 2 comments
Open

can I change metadata without a new build?_ #5555

hsenol1 opened this issue May 30, 2024 · 2 comments

Comments

@hsenol1
Copy link

hsenol1 commented May 30, 2024

I want to change the tag of the image, from staging to prod. As you may guess, this is for reducing the wasted time while building, because the tests will already be completed while merging. Therefore, there is no need for us to run another build. There are lots of options to change tag, and it is not a problem therefore. However, when I change tag, the creation date still will be same, thus the image will not be at the top of the list in artifact registry. I have to change it (because some of other tools scans the newest images, ArgoCD Image Updater). However, I could not find a way to change metadata without a need for a new build.

@rhatdan
Copy link
Member

rhatdan commented Jun 3, 2024

buildah tag does not work for you then?

@nalind Thoughts?

@nalind
Copy link
Member

nalind commented Jun 3, 2024

Which metadata do you mean? The tag isn't part of the image itself, so retagging an image (for example, using buildah tag locally, or by pushing an image to a second repository or tag in a registry) doesn't change its contents.

Modifying the creation date recorded in the image, even without changing anything else, necessarily changes the digest of the image's configuration blob, which is generally used as the image's ID, and that changes the contents and digest of its manifest. At that point, it would be considered a different image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants