Skip to content
Snippets Groups Projects
Verified Commit bf31137c authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

Run tagging job only on default branches

This patch should reduce the need of customizations in downstream
gitlab-ci includes by making the most common case, of running the
container build tagging, only on the default branch of the repository.
parent 75188096
Branches
Tags
No related merge requests found
...@@ -43,3 +43,5 @@ container-tagging: ...@@ -43,3 +43,5 @@ container-tagging:
- podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" - podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
- si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" "$CI_REGISTRY_IMAGE" "${CI_REGISTRY_IMAGE_VERSION}" - si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA" "$CI_REGISTRY_IMAGE" "${CI_REGISTRY_IMAGE_VERSION}"
- si-push "$CI_REGISTRY_IMAGE" - si-push "$CI_REGISTRY_IMAGE"
workflow:
if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment