mirror of
https://github.com/thegeeklab/docker-autotag.git
synced 2024-06-18 15:30:51 +02: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
|
@staticmethod
|
||||||
def _tag_extra(tags, extra):
|
def _tag_extra(tags, extra):
|
||||||
pass
|
if extra:
|
||||||
|
e = [x.strip() for x in extra.split(",")]
|
||||||
|
|
||||||
|
return tags + e or []
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _tag_suffix(tags, suffix):
|
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._default_tags(config["version"], config["ignore_pre"], config["force_latest"])
|
||||||
v = self._tag_suffix(v, config["suffix"])
|
v = self._tag_suffix(v, config["suffix"])
|
||||||
|
v = self._tag_extra(v, config["extra"])
|
||||||
|
|
||||||
if config["file"]:
|
if config["file"]:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user