2020-09-25 16:14:05 +08:00
|
|
|
workflow:
|
|
|
|
rules:
|
2020-11-04 15:12:22 +08:00
|
|
|
# Disable those non-protected push triggered pipelines
|
2023-09-08 20:39:12 +08:00
|
|
|
- if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_COMMIT_TAG !~ /^qa-test/ && $CI_PIPELINE_SOURCE == "push"'
|
2020-09-25 16:14:05 +08:00
|
|
|
when: never
|
2023-11-01 12:43:19 +01:00
|
|
|
# when running merged result pipelines, CI_COMMIT_SHA represents the temp commit it created.
|
|
|
|
# Please use PIPELINE_COMMIT_SHA at all places that require a commit sha of the original commit.
|
2021-10-28 14:12:40 +08:00
|
|
|
- if: $CI_OPEN_MERGE_REQUESTS != null
|
|
|
|
variables:
|
|
|
|
PIPELINE_COMMIT_SHA: $CI_MERGE_REQUEST_SOURCE_BRANCH_SHA
|
2023-05-24 10:53:57 +08:00
|
|
|
IS_MR_PIPELINE: 1
|
2021-10-28 14:12:40 +08:00
|
|
|
- if: $CI_OPEN_MERGE_REQUESTS == null
|
|
|
|
variables:
|
|
|
|
PIPELINE_COMMIT_SHA: $CI_COMMIT_SHA
|
2023-05-24 10:53:57 +08:00
|
|
|
IS_MR_PIPELINE: 0
|
2020-09-25 16:14:05 +08:00
|
|
|
- when: always
|
|
|
|
|
2023-09-26 13:24:26 +02:00
|
|
|
# Place the default settings in `.gitlab/ci/common.yml` instead
|
2021-10-26 17:34:55 +07:00
|
|
|
|
2019-06-29 00:39:21 +08:00
|
|
|
include:
|
2023-11-24 08:36:41 +01:00
|
|
|
- '.gitlab/ci/danger.yml'
|
2023-09-26 13:24:26 +02:00
|
|
|
- '.gitlab/ci/common.yml'
|
2021-02-09 12:31:38 +08:00
|
|
|
- '.gitlab/ci/rules.yml'
|
2022-06-07 09:05:15 +08:00
|
|
|
- '.gitlab/ci/upload_cache.yml'
|
2021-02-09 12:31:38 +08:00
|
|
|
- '.gitlab/ci/docs.yml'
|
|
|
|
- '.gitlab/ci/static-code-analysis.yml'
|
2024-01-30 21:36:00 +08:00
|
|
|
- '.gitlab/ci/pre_commit.yml'
|
2021-02-09 12:31:38 +08:00
|
|
|
- '.gitlab/ci/pre_check.yml'
|
|
|
|
- '.gitlab/ci/build.yml'
|
2023-09-08 20:39:12 +08:00
|
|
|
- '.gitlab/ci/integration_test.yml'
|
2021-02-09 12:31:38 +08:00
|
|
|
- '.gitlab/ci/host-test.yml'
|
|
|
|
- '.gitlab/ci/deploy.yml'
|
2024-05-18 19:00:08 +08:00
|
|
|
- '.gitlab/ci/post_deploy.yml'
|
2024-07-02 17:38:41 +08:00
|
|
|
- '.gitlab/ci/retry_failed_jobs.yml'
|
2023-12-08 16:36:05 +01:00
|
|
|
- '.gitlab/ci/test-win.yml'
|