forked from univention/univention-corporate-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (47 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
46
47
48
49
50
51
52
include: '/.gitlab-ci/base.yml'
generate-config:
stage: build
script:
- .gitlab-ci/build-ci
artifacts:
paths:
- generated-config-doc.yml
- generated-config-deb.yml
prepare aptly:
stage: build
image: curlimages/curl
script:
- "$CI_PROJECT_DIR/.gitlab-ci/aptly-create || :"
- $CI_PROJECT_DIR/.gitlab-ci/aptly-publish
environment:
name: $CI_COMMIT_REF_NAME
url: $APT/dists/$CI_COMMIT_REF_SLUG/
on_stop: drop aptly
auto_stop_in: 6 month
drop aptly:
stage: build
variables:
GIT_STRATEGY: none
image: curlimages/curl
script:
- "curl --silent --show-error -X DELETE $APTLY/publish/$CI_COMMIT_REF_SLUG/git || :"
- "curl --silent --show-error -X DELETE $APTLY/repos/$CI_COMMIT_REF_SLUG || :"
when: manual
environment:
name: $CI_COMMIT_REF_NAME
action: stop
.doc-pipeline:
stage: test
rules:
- changes:
- doc/*/**/*
trigger:
include:
- artifact: generated-config-doc.yml
job: generate-config
deb-pipeline:
stage: test
trigger:
include:
- artifact: generated-config-deb.yml
job: generate-config