-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
38 lines (35 loc) · 1.08 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
.publish:
image: registry.gitlab.com/libvirt/libvirt/ci-almalinux-8:latest
script:
- make
- mv build public
artifacts:
paths:
- public
# This job creates artifacts which can be browsed without making live
web:
extends: .publish
rules:
# Only run if it is a merge request, or a forced pipeline
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $RUN_PIPELINE == "1"'
when: on_success
- when: never
# This job creates artifacts and publishes them to the live site
pages:
extends: .publish
rules:
# We can publish the website from pushes to the main branch only
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: on_success
- when: never
# Check that all commits are signed-off for the DCO.
# Skip on "libvirt" namespace, since we only need to run
# this test on developer's personal forks from which
# merge requests are submitted
check-dco:
image: registry.gitlab.com/libvirt/libvirt-ci/check-dco:master
script:
- /check-dco
except:
variables:
- $CI_PROJECT_NAMESPACE == 'libvirt'