forked from osbuild/manifest-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
157 lines (147 loc) · 3.79 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
variables:
GIT_DEPTH: 0
stages:
- init
- gen
- test
- build
- finish
.base:
before_script:
- cat schutzbot/team_ssh_keys.txt | tee -a ~/.ssh/authorized_keys > /dev/null
- schutzbot/deploy.sh
- schutzbot/ci_details.sh > ci-details-before-run
after_script:
- schutzbot/ci_details.sh > ci-details-after-run || true
- schutzbot/unregister.sh || true
- schutzbot/update_github_status.sh update || true
interruptible: true
tags:
- terraform
artifacts:
paths:
- ci-artifacts
- ci-details-before-run
- ci-details-after-run
- "*.repo"
when: always
.terraform:
extends: .base
tags:
- terraform
init:
stage: init
tags:
- shell
script:
- schutzbot/update_github_status.sh start
interruptible: true
Regression:
stage: test
extends: .terraform
script:
- schutzbot/selinux-context.sh
- sudo test/cases/manifest_tests ${PARALLEL_EXEC}
rules:
- if: '$CI_PIPELINE_SOURCE != "trigger"'
artifacts:
when: always
paths:
- generated-image-infos/
parallel:
matrix:
- PARALLEL_EXEC: ["1/4", "2/4", "3/4", "4/4"]
RUNNER:
- aws/fedora-37-x86_64
- aws/fedora-37-aarch64
- aws/centos-stream-8-x86_64
- aws/centos-stream-8-aarch64
- aws/centos-stream-9-x86_64
- aws/centos-stream-9-aarch64
- PARALLEL_EXEC: ["1/4", "2/4", "3/4", "4/4"]
RUNNER:
- aws/rhel-8.8-ga-x86_64
- aws/rhel-8.8-ga-aarch64
- aws/rhel-8.10-nightly-x86_64
- aws/rhel-8.10-nightly-aarch64
- aws/rhel-9.2-ga-x86_64
- aws/rhel-9.2-ga-aarch64
- aws/rhel-9.4-nightly-x86_64
- aws/rhel-9.4-nightly-aarch64
INTERNAL_NETWORK: "true"
Manifest-gen:
stage: gen
extends: .terraform
rules:
- if: '$CI_PIPELINE_SOURCE == "trigger"'
artifacts:
when: always
paths:
- manifests
script:
- schutzbot/gen_manifests.sh
parallel:
matrix:
- RUNNER:
- aws/fedora-39-x86_64
INTERNAL_NETWORK: "true"
Image-info-build:
stage: build
extends: .terraform
script:
- schutzbot/selinux-context.sh
- tools/import-image-tests manifests manifest-db --manifest-only --db-ignore=db-ignore --filter-with-ci-distros=.gitlab-ci.yml --verbose
- sudo test/cases/gen_db ${PARALLEL_EXEC}
rules:
- if: '$CI_PIPELINE_SOURCE == "trigger"'
artifacts:
when: always
paths:
- generated-image-infos/
dependencies:
- Manifest-gen
parallel:
matrix:
- PARALLEL_EXEC: ["1/4", "2/4", "3/4", "4/4"]
RUNNER:
- aws/fedora-39-x86_64
- aws/fedora-39-aarch64
- aws/centos-stream-8-x86_64
- aws/centos-stream-8-aarch64
- aws/centos-stream-9-x86_64
- aws/centos-stream-9-aarch64
- PARALLEL_EXEC: ["1/4", "2/4", "3/4", "4/4"]
RUNNER:
- aws/rhel-8.9-ga-x86_64
- aws/rhel-8.9-ga-aarch64
- aws/rhel-8.10-nightly-x86_64
- aws/rhel-8.10-nightly-aarch64
- aws/rhel-9.3-ga-x86_64
- aws/rhel-9.3-ga-aarch64
- aws/rhel-9.4-nightly-x86_64
- aws/rhel-9.4-nightly-aarch64
INTERNAL_NETWORK: "true"
push-image-info:
stage: finish
extends: .terraform
script:
- tools/import-image-tests manifests manifest-db --manifest-only --db-ignore=db-ignore --filter-with-ci-distros=.gitlab-ci.yml --verbose
- rm -r manifests
- schutzbot/include_image_info.sh
dependencies:
- Manifest-gen
rules:
- if: '$CI_PIPELINE_SOURCE == "trigger"'
parallel:
matrix:
- RUNNER:
- aws/fedora-39-x86_64
finish:
stage: finish
rules:
- if: '$CI_PIPELINE_SOURCE != "trigger"'
dependencies: []
tags:
- shell
script:
- schutzbot/update_github_status.sh finish