-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
45 lines (39 loc) · 1.11 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# MAIN ENTRYPOINT FOR CONTINUOUS INTEGRATION JOBS
#
# Tests are executed on infrastructure provided by GitLab CI
#
# Schedule for full CI runs is defined via GitLab web ui:
# branch: master
# cron: 5 4 1,11,21 * * (UTC)
# vars:
# TRIGGER_DOCKER_BUILD: true
stages:
- build
- test-docker
- test-kvm
- test-playbook
- deploy-gate
- deploy
- notify
include:
- .gitlab/ci/build.yml
- .gitlab/ci/test-docker.yml
- .gitlab/ci/test-kvm.yml
- .gitlab/ci/test-playbook.yml
- .gitlab/ci/deploy-gate.yml
- .gitlab/ci/deploy.yml
workflow:
rules:
# Do not execute full CI pipeline on branch creation
# https://gitlab.com/gitlab-org/gitlab/-/issues/15170
- if: >
$CI_PIPELINE_SOURCE == 'push' &&
$CI_COMMIT_BRANCH &&
$CI_COMMIT_BEFORE_SHA == '0000000000000000000000000000000000000000'
when: never
- if: >
$CI_PIPELINE_SOURCE == 'merge_request_event' &&
$CI_MERGE_REQUEST_ID &&
$CI_COMMIT_BEFORE_SHA == '0000000000000000000000000000000000000000'
when: never
- when: always # Enable this pipeline unless explicitly told otherwise