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