From e36ea2f7f7aab182764813e3b43d80be209bbc67 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Tue, 16 Mar 2021 19:10:12 +0100 Subject: [PATCH] Fix CI condition for new default branch --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd3dd83..f709039 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,6 +44,5 @@ tagging-master: - podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" - si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'FROM docker.io/gitlab/gitlab-runner:v' Dockerfile | sed -e 's/.*:v//')" - podman images --format "{{.Repository}}:{{.Tag}}" "$CI_REGISTRY_IMAGE" | grep "$CI_REGISTRY_IMAGE" | xargs -L 1 podman push - only: - - master - + rules: + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'