From 391dab74ee7a343799d2f0dff0ec7baf05b00927 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 4 May 2020 09:21:00 +0200 Subject: [PATCH] add function to append a static tag list --- dockerautotag/Cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dockerautotag/Cli.py b/dockerautotag/Cli.py index e2f11ce..b67d7d3 100644 --- a/dockerautotag/Cli.py +++ b/dockerautotag/Cli.py @@ -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: