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

Merge branch 'mdc/include-build-assets-image-job-sync-pipelines' into 'master'

Include compile-production-assets and build-assets-image job on mirror push pipelines

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/181947



Merged-by: default avatarMayra Cabrera <mcabrera@gitlab.com>
Approved-by: default avatarDavid Dieulivol <ddieulivol@gitlab.com>
Approved-by: default avatarMayra Cabrera <mcabrera@gitlab.com>
Co-authored-by: default avatarmadelacruz <mdelacruz@gitlab.com>
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+$/'
...@@ -1129,6 +1134,7 @@ ...@@ -1129,6 +1134,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
...@@ -1349,6 +1355,7 @@ ...@@ -1349,6 +1355,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.
先完成此消息的编辑!
想要评论请 注册