1#
2# Arm SCP/MCP Software
3# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8variables:
9  PIPELINE_TYPE:
10    value: "deployment-pipeline"
11    options:
12      - "deployment-pipeline"
13      - "daily-pipeline"
14      - "weekly-pipeline"
15    description: "The CI pipeline to run"
16
17  FETCH_PUBLIC_MR:
18    value: "false"
19    options:
20      - "false"
21      - "true"
22    description: "Fetch branch from public MR"
23
24  FETCH_PUBLIC_MR_NUMBER:
25    description: "MR number to fetch"
26
27default:
28  tags:
29    - arm64
30
31include:
32  - local: .gitlab/pipelines/deployment-pipeline.yml
33    rules:
34      - if: $PIPELINE_TYPE == "deployment-pipeline"
35
36  - local: .gitlab/pipelines/daily-pipeline.yml
37    rules:
38      - if: $PIPELINE_TYPE == "daily-pipeline"
39
40  - local: .gitlab/pipelines/weekly-pipeline.yml
41    rules:
42      - if: $PIPELINE_TYPE == "weekly-pipeline"
43
44# Pipelines workflow rules
45workflow:
46  rules:
47    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
48    - if: $CI_PIPELINE_SOURCE == "web"
49    - if: $CI_PIPELINE_SOURCE == "schedule"
50    - if: $CI_COMMIT_TAG
51    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
52