Skip to content
代码片段 群组 项目
未验证 提交 ef998ce2 编辑于 作者: Mawreen Dela Cruz's avatar Mawreen Dela Cruz 提交者: GitLab
浏览文件

Include compile-production-assets and build-assets-image job when VERSION file...

Include compile-production-assets and build-assets-image job when VERSION file is updated in the stable branch
上级 a6031708
No related branches found
No related tags found
无相关合并请求
...@@ -46,6 +46,11 @@ ...@@ -46,6 +46,11 @@
.if-default-branch-refs: &if-default-branch-refs .if-default-branch-refs: &if-default-branch-refs
if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_MERGE_REQUEST_IID == null' if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH && $CI_MERGE_REQUEST_IID == null'
# This rule ensures the job runs for push pipeline events on stable branches.
# This is used for ensuring jobs run in a pipeline triggered by mirror sync.
.if-sync-changes-on-stable-branches: &if-sync-changes-on-stable-branches
if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable(-ee)?$/'
.if-auto-deploy-branches: &if-auto-deploy-branches .if-auto-deploy-branches: &if-auto-deploy-branches
if: '$CI_COMMIT_BRANCH =~ /^\d+-\d+-auto-deploy-\d+$/' if: '$CI_COMMIT_BRANCH =~ /^\d+-\d+-auto-deploy-\d+$/'
...@@ -1121,6 +1126,7 @@ ...@@ -1121,6 +1126,7 @@
when: never when: never
- if: '$ENABLE_BUILD_ASSETS_IMAGE == "true"' - if: '$ENABLE_BUILD_ASSETS_IMAGE == "true"'
- <<: *if-tag - <<: *if-tag
- <<: *if-sync-changes-on-stable-branches
- !reference [".frontend:rules:assets-shared", rules] - !reference [".frontend:rules:assets-shared", rules]
# Always build on stable branches to serve release-environments pipeline # Always build on stable branches to serve release-environments pipeline
# Do not refer directly to .release-environments:rules:start-release-environments-security-pipeline # Do not refer directly to .release-environments:rules:start-release-environments-security-pipeline
...@@ -1339,6 +1345,7 @@ ...@@ -1339,6 +1345,7 @@
when: never when: never
- if: '$ENABLE_COMPILE_PRODUCTION_ASSETS == "true"' - if: '$ENABLE_COMPILE_PRODUCTION_ASSETS == "true"'
- <<: *if-tag - <<: *if-tag
- <<: *if-sync-changes-on-stable-branches
- !reference [".frontend:rules:assets-shared", rules] - !reference [".frontend:rules:assets-shared", rules]
# Always build on stable branches to serve release-environments pipeline # Always build on stable branches to serve release-environments pipeline
# Do not refer directly to .release-environments:rules:start-release-environments-security-pipeline # Do not refer directly to .release-environments:rules:start-release-environments-security-pipeline
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册