1
0
Fork 0

Fix gitlab CI tags to always use privileged runner

This commit is contained in:
Saibotk 2021-09-21 20:16:24 +00:00
parent 846ba92028
commit adacb41dd3

View file

@ -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//')"