From d476545c0833ca35cbc62261f566a4e35a5d6989 Mon Sep 17 00:00:00 2001 From: C-Tim <tim@c-hack.de> Date: Sat, 6 Nov 2021 19:26:31 +0100 Subject: [PATCH] Prepare for regular docker rebuild and republish To keep the system and libaries inside the docker container up-to-date each release of the container needs to be rebuild on a regular basis. Therefore the pipeline on the tagged commits needs to be rerun regularly. To avoid also republishing the other artifacts a variable is introduced to suppress the execution of those jobs. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd66bcf2..a6b1ce4d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -213,7 +213,7 @@ test:package:apt:bullseye: .publish: stage: deploy rules: - - if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/' + - if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/ && $REPUBLISH_DOCKER != "true"' publish:pip: extends: .publish @@ -239,6 +239,8 @@ publish:apt: publish:docker: extends: .publish + rules: + - if: '$CI_COMMIT_TAG =~ /v[0-9]+[.][0-9]+[.][0-9]+.*/' image: name: gcr.io/go-containerregistry/crane:debug entrypoint: [""] -- GitLab