From d05dbf494dc0d6fff9bdc4c00e13b2a27c646d23 Mon Sep 17 00:00:00 2001 From: Andrew Kapuscinski <akapusci@nrao.edu> Date: Thu, 1 Apr 2021 12:29:07 -0600 Subject: [PATCH] fix regex for triggering test deploy via git tag --- ci/build.template.yml | 2 +- ci/push.template.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/build.template.yml b/ci/build.template.yml index 7ef280a36..07d6e3936 100644 --- a/ci/build.template.yml +++ b/ci/build.template.yml @@ -18,7 +18,7 @@ - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' variables: IMAGE_TAG: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME - - if: '$CI_COMMIT_TAG =~ /^end-of-sprint\/[0-9]+/' + - if: '$CI_COMMIT_TAG =~ /^end-of-sprint-[0-9]+/' variables: IMAGE_TAG: $CI_COMMIT_TAG # override DEPLOY_ENV diff --git a/ci/push.template.yml b/ci/push.template.yml index 442b46828..12a1f200c 100644 --- a/ci/push.template.yml +++ b/ci/push.template.yml @@ -9,7 +9,7 @@ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH variables: IMAGE_TAG: $CI_DEFAULT_BRANCH - - if: '$CI_COMMIT_TAG =~ /^end-of-sprint\/[0-9]+/' + - if: '$CI_COMMIT_TAG =~ /^end-of-sprint-[0-9]+/' variables: IMAGE_TAG: $CI_COMMIT_TAG # - if: '$CI_COMMIT_TAG =~ /^test_[0-9]+\.[0-9]+.[0-9]+$/' -- GitLab