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
|
2023-09-08 08:39:12 -04: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 04:14:05 -04:00
|
|
|
when: never
|
2023-11-01 07:43:19 -04: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 02:12:40 -04:00
|
|
|
- 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'
|
2023-09-08 08:39:12 -04:00
|
|
|
- '.gitlab/ci/integration_test.yml'
|
2021-02-08 23:31:38 -05:00
|
|
|
- '.gitlab/ci/host-test.yml'
|
|
|
|
- '.gitlab/ci/target-test.yml'
|
|
|
|
- '.gitlab/ci/deploy.yml'
|