forked from fepitre/qubes-continuous-integration
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.gitlab-ci.yml
53 lines (49 loc) · 1.65 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
include:
- '/r4.3/gitlab-base.yml'
- '/r4.3/gitlab-host-build.yml'
- '/r4.3/gitlab-host-vm-openqa.yml'
- '/r4.3/gitlab-vm-fedora-build.yml'
- '/r4.3/gitlab-vm-debian-build.yml'
- '/r4.3/gitlab-vm-archlinux-build.yml'
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "api" || $CI_PIPELINE_SOURCE == "trigger" || $CI_PIPELINE_SOURCE == "schedule"'
when: always
- when: never
variables:
PR_LABEL:
value: "openqa-pending"
description: "Collect PRs with this label for the test run"
SELINUX_TEMPLATES:
description: "Test SELinux on those (space separated) templates"
UPDATE_TEMPLATES:
description: "List of templates to update (space separated)"
TEST_TEMPLATES:
description: "List of templates to run tests on (space separated)"
DEFAULT_TEMPLATE:
description: "Template to set as default, can be abbreviated like 'debian' for latest Debian version"
r4.3:prep:sources:
extends: .r4.3_components_prepare
artifacts:
expire_in: 1 day
paths:
- qubes-builder.tar.xz
- pull-requests.txt
script:
- git config --global user.email "[email protected]"
- git config --global user.name "builder"
- cp ./scripts/gitlab-*v2 ~/qubes-builder/
- cp ./scripts/repo-key.gpgbatch ~/qubes-builder/
- cp ./scripts/combine-and-sign-repo ~/qubes-builder/
- ./scripts/get-prs-sourcesv2 "$PR_LABEL"
- tar cJf $CI_PROJECT_DIR/qubes-builder.tar.xz --strip-components=1 -C ~/ qubes-builder
publish:openqa:
tags:
- docker
needs:
# for pull-requests.txt
- r4.3:prep:sources
- r4.3:publish:repo
stage: publish
script:
- ./scripts/start-openqa-repo