From 55d6261c5103bd4cf68e0b2705ed089d7e258289 Mon Sep 17 00:00:00 2001 From: Gilles Filippini <pini@debian.org> Date: Mon, 28 Aug 2023 23:47:04 +0200 Subject: [PATCH] ci: fix regex for variable CI_COMMIT_TAG --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e3aa7ab32..b5da0a433 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -117,7 +117,7 @@ build_release: build_release_tag: extends: .docker_build rules: - - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v*/" + - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^(v|runtime-)[0-9].*/" - when: never variables: IMAGE_NAME: "duniter/duniter-v2s" @@ -143,7 +143,7 @@ test_release: stage: tests extends: .docker_build rules: - - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v*/" + - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^(v|runtime-)[0-9].*/" - when: never variables: IMAGE_NAME: "duniter/duniter-v2s-test" @@ -188,7 +188,7 @@ deploy_docker_release_tag: stage: deploy extends: .docker_deploy_native rules: - - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v*/" + - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^(v|runtime-)[0-9].*/" - when: never variables: IMAGE_NAME: "duniter/duniter-v2s" @@ -199,7 +199,7 @@ deploy_docker_release_tag_multiplatform: needs: ["deploy_docker_release_tag"] extends: .docker_deploy_multiplatform rules: - - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v*/" + - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^(v|runtime-)[0-9].*/" - when: never script: - !reference [.docker_deploy_multiplatform, script] @@ -212,7 +212,7 @@ readme_docker_release_tag: stage: deploy_readme needs: ["deploy_docker_release_tag"] rules: - - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^v*/" + - if: "$CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /^(v|runtime-)[0-9].*/" - when: never image: name: chko/docker-pushrm -- GitLab