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

Commit

Permalink
use PredefinedVariables.CI_COMMIT_REF_SLUG as default image tag for k…
Browse files Browse the repository at this point in the history
…aniko builds
  • Loading branch information
ThomasSteinbach committed Mar 13, 2021
1 parent 0173d6f commit c93d7ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions gcip/addons/kaniko/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c93d7ac

Please sign in to comment.