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

Allow tags to be overwritten #33

Open
jpreese opened this issue Sep 5, 2020 · 1 comment
Open

Allow tags to be overwritten #33

jpreese opened this issue Sep 5, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jpreese
Copy link
Collaborator

jpreese commented Sep 5, 2020

I currently use lstags for syncing. It supports all kinds of fancy regexes for defining versions (but of course they come with their own caveats)
Maybe supporting a list of tags for syncing images would come handy as well (do not know how to handle digest, though):

target:
  host: myhost.com
  repository: my/repo
images:
- repository: library/debian
  host: registry.hub.docker.com
  tag:
   - stretch
   - stretch-slim
   - buster
   - buster-slim
   - testing
   - sid

Originally posted by @mfriedenhagen in #8 (comment)

To add:

  • Allow a single tag to be specified or an array of tags.
  • Add a new attribute (overwrite:true ?) that will overwrite the tag at the target if the tag already exists.
@jpreese jpreese added the enhancement New feature or request label Sep 5, 2020
@mfriedenhagen
Copy link

mfriedenhagen commented Sep 5, 2020

I would go for the following:

  • Make tags a list of a map from name and digest.
  • if digest is not given, assume this is a moving tag
  • this ensures that no one is able to fiddle behind your back with the image unexpectedly

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

2 participants