-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
83 lines (73 loc) · 1.87 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
include:
- project: 'univention/documentation/sphinx-docker'
file: 'pipeline/sphinx.yml'
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_OPEN_MERGE_REQUESTS
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_PROTECTED == "true"
- if: $CI_PIPELINE_SOURCE == "web"
- if: $CI_PIPELINE_SOURCE == "webide"
stages:
- build
- merge
- production
variables:
DOCS_DIR: "docs"
LANG: "C.UTF-8"
DEBIAN_FRONTEND: noninteractive
UNIVENTION_BASECONF: /dev/null
DOC_TARGET_VERSION: "2.1.1"
DOC_TARGET_NAME: "ox-connector-app"
DOC_TARGET_PATH: "$DOC_TARGET_NAME/$DOC_TARGET_VERSION"
docs-linkcheck:
extends: .sphinx-linkcheck-template
rules:
- changes:
- $DOCS_DIR/**/*
docs-spelling:
extends: .sphinx-spelling-template
rules:
- changes:
- $DOCS_DIR/**/*
docs-html:
extends: .sphinx-html-template
rules:
- changes:
- $DOCS_DIR/**/*
docs-pdf:
extends: .sphinx-pdf-template
rules:
- changes:
- $DOCS_DIR/**/*
docs-warnings:
extends: .sphinx-warnings-template
rules:
- changes:
- $DOCS_DIR/**/*
docs-merge-to-one-artifact:
extends: .sphinx-merge-template
needs:
- job: docs-html
- job: docs-pdf
- job: docs-spelling
artifacts: false
- job: docs-linkcheck
artifacts: false
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
changes:
- $DOCS_DIR/**/*
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- $DOCS_DIR/**/*
when: manual
# The template has inherit:variables:false to prevent the passing of pipeline
# variables to downstream, and therefore $DOCS_DIR is not available here.
docs-create-production-merge-request:
extends: .sphinx-docs-merge-request-template
needs:
- job: docs-merge-to-one-artifact
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
- docs/**/*