Skip to content
Snippets Groups Projects

add end-of-sprint tag conditionals for deploying to test env

Merged Andrew Kapuscinski requested to merge add-end-of-sprint-tag-deploy into main
3 files
+ 18
5
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 7
2
@@ -18,8 +18,13 @@
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
variables:
IMAGE_TAG: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
- if: '$CI_COMMIT_TAG =~ /^test_[0-9]+\.[0-9]+.[0-9]+$/'
- if: '$CI_COMMIT_TAG =~ /^end-of-sprint\/[0-9]+/'
variables:
IMAGE_TAG: $CI_COMMIT_TAG
# override DEPLOY_ENV
DEPLOY_ENV: "test"
\ No newline at end of file
DEPLOY_ENV: "test"
# - if: '$CI_COMMIT_TAG =~ /^test_[0-9]+\.[0-9]+.[0-9]+$/'
# variables:
# IMAGE_TAG: $CI_COMMIT_TAG
# # override DEPLOY_ENV
# DEPLOY_ENV: "test"
\ No newline at end of file
Loading