diff --git a/gcip/addons/kaniko/jobs.py b/gcip/addons/kaniko/jobs.py index d9d0fb4..1847187 100644 --- a/gcip/addons/kaniko/jobs.py +++ b/gcip/addons/kaniko/jobs.py @@ -82,6 +82,9 @@ def execute( if image_name is None: image_name = PredefinedVariables.CI_PROJECT_NAME + if not image_tag and PredefinedVariables.CI_COMMIT_REF_SLUG: + image_tag = PredefinedVariables.CI_COMMIT_REF_SLUG + image_tag_postfix = "" if image_tag: image_tag_postfix = f":{image_tag}" diff --git a/setup.cfg b/setup.cfg index 3614813..7c9bf31 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ statistics = True doctests = True max_line_length = 140 max_doc_length = 140 -max-complexity = 22 +max-complexity = 25 [yapf] arithmetic_precedence_indication=True