sinker icon indicating copy to clipboard operation
sinker copied to clipboard

Allow tags to be overwritten

Open jpreese opened this issue 5 years ago • 1 comments

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 https://github.com/plexsystems/sinker/issues/8#issuecomment-686611812

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 avatar Sep 05 '20 15:09 jpreese

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

mfriedenhagen avatar Sep 05 '20 20:09 mfriedenhagen