mirror of
https://github.com/thegeeklab/docker-autotag.git
synced 2024-11-22 00:00:42 +00:00
add function to append a static tag list
This commit is contained in:
parent
6bb1cbfceb
commit
391dab74ee
@ -51,7 +51,10 @@ class Autotag:
|
||||
|
||||
@staticmethod
|
||||
def _tag_extra(tags, extra):
|
||||
pass
|
||||
if extra:
|
||||
e = [x.strip() for x in extra.split(",")]
|
||||
|
||||
return tags + e or []
|
||||
|
||||
@staticmethod
|
||||
def _tag_suffix(tags, suffix):
|
||||
@ -113,6 +116,7 @@ class Autotag:
|
||||
|
||||
v = self._default_tags(config["version"], config["ignore_pre"], config["force_latest"])
|
||||
v = self._tag_suffix(v, config["suffix"])
|
||||
v = self._tag_extra(v, config["extra"])
|
||||
|
||||
if config["file"]:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user