Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit c93d7ac

Browse files
use PredefinedVariables.CI_COMMIT_REF_SLUG as default image tag for kaniko builds
1 parent 0173d6f commit c93d7ac

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

gcip/addons/kaniko/jobs.py

+3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def execute(
8282
if image_name is None:
8383
image_name = PredefinedVariables.CI_PROJECT_NAME
8484

85+
if not image_tag and PredefinedVariables.CI_COMMIT_REF_SLUG:
86+
image_tag = PredefinedVariables.CI_COMMIT_REF_SLUG
87+
8588
image_tag_postfix = ""
8689
if image_tag:
8790
image_tag_postfix = f":{image_tag}"

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ statistics = True
33
doctests = True
44
max_line_length = 140
55
max_doc_length = 140
6-
max-complexity = 22
6+
max-complexity = 25
77

88
[yapf]
99
arithmetic_precedence_indication=True

0 commit comments

Comments
 (0)