File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ stages:
1111# # Conditions
1212.only_engine : &only_engine
1313 rules :
14- - changes :
14+ - if : $CI_COMMIT_TAG =~ /^v[a-zA-Z0-9_.-]*/
15+ - if : $CI_COMMIT_BRANCH
16+ changes :
1517 - engine/**/*
1618
1719.only_dle_tag_release : &only_tag_release
Original file line number Diff line number Diff line change 11.only_ui : &only_ui
22 rules :
3- - changes :
3+ - if : $CI_COMMIT_TAG =~ /^ui\/[0-9.]+$/
4+ - if : $CI_COMMIT_BRANCH
5+ changes :
46 - ui/**/*
57
68check_code_style :
Original file line number Diff line number Diff line change 11# Conditions.
22.only_ui_feature : &only_ui_feature
33 rules :
4- - changes :
4+ - if : $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
5+ changes :
56 - ui/**/*
6- if : ' $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
77
88.only_ui_tag_release : &only_ui_tag_release
99 rules :
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ workflow:
2121 ENV : production
2222 NAMESPACE : production
2323 DOCKER_NAME : " gcr.io/postgres-ai/platform-web/cloud"
24- TAG : " ${DOCKER_NAME}:${CI_COMMIT_TAG}-${CI_PIPELINE_IID}"
24+ before_script :
25+ - export UI_VERSION=$(echo ${CI_COMMIT_TAG#"ui/"})
26+ - export TAG="${DOCKER_NAME}:${UI_VERSION}-${CI_PIPELINE_IID}"
2527
2628.environment_staging : &env_staging
2729 environment :
@@ -75,7 +77,7 @@ workflow:
7577
7678.only_ui_feature : &only_ui_feature
7779 rules :
78- - if : ' $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
80+ - if : $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
7981 changes :
8082 - ui/**/*
8183 when : manual
You can’t perform that action at this time.
0 commit comments