-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
189 lines (158 loc) · 3.9 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
stages:
- pre
- latex
- texstudio
- post
.docker_login:
before_script:
- test -z "$DOCKER_REGISTRY_PASSWORD" && echo "Provided empty password. Make sure DOCKER_REGISTRY_PASSWORD is set."
- echo "$DOCKER_REGISTRY_PASSWORD" | docker login --username "$DOCKER_REGISTRY_USER" --password-stdin $DOCKER_REGISTRY_DOMAIN
variables:
DOCKER_REGISTRY_DOMAIN: docker.io
DOCKER_REGISTRY_USER: raabf
push_readme:
extends: .docker_login
stage: pre
tags: ['DOCKER']
needs: []
script:
- docker pushrm --provider=dockerhub --file="./README.md" $DOCKER_REGISTRY_DOMAIN/raabf/latex-versions
- docker pushrm --provider=dockerhub --file="./README.md" $DOCKER_REGISTRY_DOMAIN/raabf/texstudio-versions
- docker pushrm --provider=dockerhub --file="./README.md" $DOCKER_REGISTRY_DOMAIN/raabf/latex-versions-arm
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: never
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success
- when: never
pre_clean:
stage: pre
tags: ['DOCKER']
script:
- docker image prune --all --force
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: on_success
- when: never
post_clean:
stage: post
tags: ['DOCKER']
script:
- docker image prune --force
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- when: always
#############################
### Base ###
#############################
.base-build:
extends: .docker_login
tags: ['DOCKER']
variables:
PUSH_ENABLED: 'false'
.build-latex:
extends: .base-build
stage: latex
script:
- ./latex/scripts/build.sh
- ./latex/scripts/tag_alias.sh
variables:
DOCKER_REGISTRY_REPO: raabf/latex-versions
DOCKERFILE_PATH: ./latex/ge-jessie.Dockerfile
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: on_success
- when: manual
.build-texstudio:
extends: .base-build
stage: texstudio
script:
- ./texstudio/scripts/build.sh
- ./texstudio/scripts/tag_alias.sh
variables:
DOCKER_REGISTRY_REPO: raabf/texstudio-versions
DOCKERFILE_PATH: ./texstudio/ge-stretch.Dockerfile
TEXSTUDIO_VERSION: "4.2.3"
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
when: on_success
- when: on_success
#############################
### Latex ###
#############################
l-stretch:
extends: .build-latex
variables:
IMAGE_TAG: stretch
l-bionic:
extends: .build-latex
variables:
IMAGE_TAG: bionic
l-buster:
extends: .build-latex
variables:
IMAGE_TAG: buster
l-focal:
extends: .build-latex
variables:
IMAGE_TAG: focal
l-bullseye:
extends: .build-latex
variables:
IMAGE_TAG: bullseye
l-jammy:
extends: .build-latex
variables:
IMAGE_TAG: jammy
l-bookworm:
extends: .build-latex
variables:
IMAGE_TAG: bookworm
#############################
### Texstudio ###
#############################
t-stretch:
extends: .build-texstudio
needs: [ 'l-stretch' ]
variables:
IMAGE_TAG: stretch
TEXSTUDIO_VERSION: "3.1.2"
t-bionic:
extends: .build-texstudio
needs: [ 'l-bionic' ]
variables:
IMAGE_TAG: bionic
t-buster:
extends: .build-texstudio
needs: [ 'l-buster' ]
variables:
IMAGE_TAG: buster
t-focal:
extends: .build-texstudio
needs: [ 'l-focal' ]
variables:
IMAGE_TAG: focal
t-bullseye:
extends: .build-texstudio
needs: [ 'l-bullseye' ]
variables:
IMAGE_TAG: bullseye
t-jammy:
extends: .build-texstudio
needs: [ 'l-jammy' ]
variables:
IMAGE_TAG: jammy
t-bookworm:
extends: .build-texstudio
needs: [ 'l-bookworm' ]
variables:
IMAGE_TAG: bookworm