Commit 25a20bef authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'use-rules-for-pages-jobs' into 'master'

Use 'rules' in '.gitlab/ci/pages.gitlab-ci.yml'

See merge request gitlab-org/gitlab!24459
parents 2bf3cea6 e6a19b16
# Make sure to update all the similar conditions in other CI config files if you modify these conditions
.if-canonical-dot-com-gitlab-org-group-master-refs: &if-canonical-dot-com-gitlab-org-group-master-refs
if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAMESPACE == "gitlab-org" && $CI_COMMIT_REF_NAME == "master"'
pages: pages:
extends: extends:
- .default-tags - .default-tags
- .default-retry - .default-retry
- .default-cache - .default-cache
- .default-only rules:
- .only:variables-canonical-dot-com - <<: *if-canonical-dot-com-gitlab-org-group-master-refs
- .only:changes-code-backstage-qa when: on_success
only:
refs:
- master
stage: pages stage: pages
dependencies: ["coverage", "karma", "gitlab:assets:compile pull-cache"] dependencies: ["coverage", "karma", "gitlab:assets:compile pull-cache"]
script: script:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment