Skip to content

newest-build constraint #1013

@dudo

Description

@dudo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions