Describe the bug
I am encountering an issue with ArgoCD Image Updater when handling sequential builds that result in two different images. The write-back method is set to git, and it appears that there are two pushes: one to write the tag together with the image, followed by a second push which deletes the first commit content and updates the image to latest@sha256:.
To Reproduce
Here are the relevant annotations for the ArgoCD application:
Backend is also updated, the second push seems to overwrite the first commit content and update the image to latest@sha256: instead of maintaining the specific tag provided in the first commit.
Expected behavior
• The image updater should respect the digest strategy and not overwrite the tag with latest.
• Each commit should maintain its respective tag without being overwritten by subsequent commit
Do you still see this problem with recent versions like 0.15.0, 0.14.0? If so, can you please provide the initial content of the git write-back target file, after the first push, and after the 2nd push?
Describe the bug I am encountering an issue with ArgoCD Image Updater when handling sequential builds that result in two different images. The write-back method is set to git, and it appears that there are two pushes: one to write the tag together with the image, followed by a second push which deletes the first commit content and updates the image to latest@sha256:.
To Reproduce Here are the relevant annotations for the ArgoCD application:
Backend is also updated, the second push seems to overwrite the first commit content and update the image to latest@sha256: instead of maintaining the specific tag provided in the first commit.
Expected behavior • The image updater should respect the digest strategy and not overwrite the tag with latest. • Each commit should maintain its respective tag without being overwritten by subsequent commit
Additional context
Version 0.12.0
Logs Not relevant