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

add --image-url-substitution #296

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roelarents
Copy link

@roelarents roelarents commented Nov 19, 2024

In our use case we are mirroring external/public images (e.g. from DockerHub) to our own private container registry, so we don't have to rely on availability and rate limiting. But we only mirror particular/arbitrary tags. So version-checker will always see those as the latest tags. This PR adds a --image-url-substitution cli option. It enables to replace (sed-style) something in all image URLs, before looking it up. All our mirrored images are prefixed like privateregistry.example.com/mirrored/docker.io/original:tag, so we can remove that prefix.
Any override annotation is still applied after.

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

Successfully merging this pull request may close these issues.

1 participant