From adacb41dd32c3871a826bf4658b61d601f275467 Mon Sep 17 00:00:00 2001 From: Saibotk Date: Tue, 21 Sep 2021 20:16:24 +0000 Subject: [PATCH] Fix gitlab CI tags to always use privileged runner --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8f5f9b..4b701fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,13 +14,15 @@ stages: build: stage: build tags: - - dind + - privileged script: - podman build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" . - podman push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" tagging-master: stage: tag + tags: + - privileged 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//')"