From f0e227aabe340893c478273c44ee9829006654de Mon Sep 17 00:00:00 2001 From: Devan Carpenter Date: Sun, 14 Feb 2021 20:38:28 +0100 Subject: [PATCH] CI: specify release tags for tagged jobs run different jobs if there is a new tag matching the "Release_" pattern. --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2344ef3..8b00745 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,8 @@ centos8:build: stage: build variables: CI_DISTRO_TARGET: "centos8" + rules: + - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/' centos8:tagged-build: extends: .make_in_docker @@ -20,7 +22,7 @@ centos8:tagged-build: CI_DISTRO_TARGET: "centos8" TAGGED_BUILD: "true" rules: - - if: $CI_COMMIT_TAG + - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/' # Debian @@ -30,6 +32,8 @@ debian10:build: variables: CI_DISTRO_TARGET: "debian10" DEBIAN_FRONTEND: "noninteractive" + rules: + - if: '$CI_COMMIT_TAG !~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/' debian10:tagged-build: extends: .make_in_docker @@ -39,5 +43,5 @@ debian10:tagged-build: DEBIAN_FRONTEND: "noninteractive" TAGGED_BUILD: "true" rules: - - if: $CI_COMMIT_TAG + - if: '$CI_COMMIT_TAG =~ /^Release_[0-9]+\.[0-9]+\.[0-9]+$/'