From a4af174f22ee81d174076ffed7b8a5bc62eb97d7 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Sun, 24 Sep 2023 16:00:43 +0200 Subject: [PATCH] fix: ci tagging --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdfff9c..3a62f84 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,7 +28,7 @@ tagging-master: - privileged-ram-4gb script: - 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//')" + - si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'FROM docker.io/gitlab/gitlab-runner:' Dockerfile | sed -e 's/.*:.*v//')" - podman images --format "{{.Repository}}:{{.Tag}}" "$CI_REGISTRY_IMAGE" | grep "$CI_REGISTRY_IMAGE" | xargs -L 1 podman push rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'