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

newest-build constraint #1013

Open
dudo opened this issue Jan 15, 2025 · 1 comment
Open

newest-build constraint #1013

dudo opened this issue Jan 15, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@dudo
Copy link

dudo commented Jan 15, 2025

I'd love to see similar functionality to digest when using newest-build. Specifically, I'd like to lean on the latest tag, but reference a corresponding tag that's paired with it (the 40 character git sha, for instance).

Something like this:

argocd-image-updater.argoproj.io/image-list: 'app=ghcr.io/{{ .organization }}/{{ regexReplaceAll "-deployment$" .repository "" }}:latest'
argocd-image-updater.argoproj.io/app.update-strategy: newest-build
argocd-image-updater.argoproj.io/app.allow-tags: regexp:^[0-9a-f]{40}$

Then when comparing diffs, the date could be used instead of the digest.

This pic shows my use case. The newest image will often not be the image I want deployed to production.

image

@dudo dudo added the enhancement New feature or request label Jan 15, 2025
@dudo
Copy link
Author

dudo commented Jan 15, 2025

This comment seems relevant

// TODO: Shall we really ensure a valid semver on the current tag?
// This prevents updating from a non-semver tag currently.

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

No branches or pull requests

1 participant