.gitlab-ci.yml 7.59 KB
Newer Older
1
2
3
4
variables:
    DOCKER_TLS_CERTDIR: ""

stages:
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
5
    - test
6
    - publish
7

Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
8
9
10
11
include:
  - project: 'memoriav/memobase-2020/utilities/ci-templates'
    file: 'helm-chart/helm-chart.yml'

12
13
.build-image:
  stage: publish
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
14
15
16
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
17
18
19
  variables:
    CANTALOUPE_VERSION: 5.0.4
    CANTALOUPE_PORT: 8182
20
  script:
21
    - ./generate-dockerfile --version=$CANTALOUPE_VERSION --port=$CANTALOUPE_PORT $BUILD_WITH
Sebastian Schüpbach's avatar
Sebastian Schüpbach committed
22
23
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
24
    - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/$DOCKERFILE --destination $IMAGE_TAG
25
26
27
28
  retry:
    max: 2
    when:
      - script_failure
29

30
build-latest-all-kakadu:
31
32
  extends: .build-image
  variables:
33
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-all-kakadu"
34
    DOCKERFILE: "Dockerfile"
35
    BUILD_WITH: "--kakadu --turbojpeg --ffmpeg"
36
37
38
  only:
    - master

39
build-latest-all-openjpeg:
40
41
  extends: .build-image
  variables:
42
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-all-openjpeg"
43
    DOCKERFILE: "Dockerfile"
44
    BUILD_WITH: "--openjpeg --turbojpeg --ffmpeg"
45
46
47
  only:
    - master

48
build-latest-all-grok:
49
50
  extends: .build-image
  variables:
51
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-all-grok"
52
    DOCKERFILE: "Dockerfile"
53
    BUILD_WITH: "--grok --turbojpeg --ffmpeg"
54
55
56
  only:
    - master

57
build-latest-kakadu-ffmpeg:
58
59
  extends: .build-image
  variables:
60
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-kakadu-ffmpeg"
61
    DOCKERFILE: "Dockerfile"
62
    BUILD_WITH: "--kakadu --ffmpeg"
63
64
65
  only:
    - master

66
build-latest-kakadu-turbojpeg:
67
68
  extends: .build-image
  variables:
69
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-kakadu-turbojpeg"
70
    DOCKERFILE: "Dockerfile"
71
    BUILD_WITH: "--kakadu --turbojpeg"
72
73
74
  only:
    - master

75
build-latest-kakadu:
76
77
  extends: .build-image
  variables:
78
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-kakadu"
79
    DOCKERFILE: "Dockerfile"
80
    BUILD_WITH: "--kakadu"
81
82
83
  only:
    - master

84
build-latest-openjpeg-ffmpeg:
85
86
  extends: .build-image
  variables:
87
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-openjpeg-ffmpeg"
88
    DOCKERFILE: "Dockerfile"
89
    BUILD_WITH: "--openjpeg --ffmpeg"
90
91
92
  only:
    - master

93
build-latest-openjpeg-turbojpeg:
94
95
  extends: .build-image
  variables:
96
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-openjpeg-turbojpeg"
97
    DOCKERFILE: "Dockerfile"
98
    BUILD_WITH: "--openjpeg --turbojpeg"
99
100
101
  only:
    - master

102
build-latest-openjpeg:
103
104
  extends: .build-image
  variables:
105
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-openjpeg"
106
    DOCKERFILE: "Dockerfile"
107
    BUILD_WITH: "--openjpeg"
108
109
110
  only:
    - master

111
build-latest-grok-ffmpeg:
112
113
  extends: .build-image
  variables:
114
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-grok-ffmpeg"
115
    DOCKERFILE: "Dockerfile"
116
    BUILD_WITH: "--grok --ffmpeg"
117
118
119
  only:
    - master

120
build-latest-grok-turbojpeg:
121
122
  extends: .build-image
  variables:
123
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-grok-turbojpeg"
124
    DOCKERFILE: "Dockerfile"
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
    BUILD_WITH: "--grok --turbojpeg"
  only:
    - master

build-latest-grok:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-grok"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--grok"
  only:
    - master

build-latest-turbojpeg-ffmpeg:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-turbojpeg-ffmpeg"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--turbojpeg --ffmpeg"
  only:
    - master

build-latest-turbojpeg:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-turbojpeg"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--turbojpeg"
  only:
    - master

build-latest-ffmpeg:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-ffmpeg"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--ffmpeg"
  only:
    - master

build-latest-no-deps:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:latest-no-deps"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: ""
  only:
    - master

build-version-all-kakadu:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-all-kakadu"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--kakadu --turbojpeg --ffmpeg"
180
181
182
183
  except:
    - master
    - tags

184
build-version-all-openjpeg:
185
186
  extends: .build-image
  variables:
187
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-all-openjpeg"
188
    DOCKERFILE: "Dockerfile"
189
190
191
192
193
194
195
196
197
198
199
    BUILD_WITH: "--openjpeg --turbojpeg --ffmpeg"
  except:
    - master
    - tags

build-version-all-grok:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-all-grok"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--grok --turbojpeg --ffmpeg"
200
201
202
203
  except:
    - master
    - tags

204
build-version-kakadu-ffmpeg:
205
206
  extends: .build-image
  variables:
207
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-kakadu-ffmpeg"
208
    DOCKERFILE: "Dockerfile"
209
    BUILD_WITH: "--kakadu --ffmpeg"
210
211
212
213
  except:
    - master
    - tags

214
build-version-kakadu-turbojpeg:
215
216
  extends: .build-image
  variables:
217
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-kakadu-turbojpeg"
218
    DOCKERFILE: "Dockerfile"
219
    BUILD_WITH: "--kakadu --turbojpeg"
220
221
222
223
  except:
    - master
    - tags

224
build-version-kakadu:
225
226
  extends: .build-image
  variables:
227
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-kakadu"
228
    DOCKERFILE: "Dockerfile"
229
    BUILD_WITH: "--kakadu"
230
231
232
233
  except:
    - master
    - tags

234
build-version-openjpeg-ffmpeg:
235
236
  extends: .build-image
  variables:
237
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-openjpeg-ffmpeg"
238
    DOCKERFILE: "Dockerfile"
239
    BUILD_WITH: "--openjpeg --ffmpeg"
240
241
242
243
  except:
    - master
    - tags

244
build-version-openjpeg-turbojpeg:
245
246
  extends: .build-image
  variables:
247
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-openjpeg-turbojpeg"
248
    DOCKERFILE: "Dockerfile"
249
    BUILD_WITH: "--openjpeg --turbojpeg"
250
251
252
253
  except:
    - master
    - tags

254
build-version-openjpeg:
255
256
  extends: .build-image
  variables:
257
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-openjpeg"
258
    DOCKERFILE: "Dockerfile"
259
    BUILD_WITH: "--openjpeg"
260
261
262
263
  except:
    - master
    - tags

264
build-version-grok-ffmpeg:
265
266
  extends: .build-image
  variables:
267
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-grok-ffmpeg"
268
    DOCKERFILE: "Dockerfile"
269
    BUILD_WITH: "--grok --ffmpeg"
270
271
272
273
  except:
    - master
    - tags

274
build-version-grok-turbojpeg:
275
276
  extends: .build-image
  variables:
277
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-grok-turbojpeg"
278
    DOCKERFILE: "Dockerfile"
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
    BUILD_WITH: "--grok --turbojpeg"
  except:
    - master
    - tags

build-version-grok:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-grok"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--grok"
  except:
    - master
    - tags

build-version-turbojpeg-ffmpeg:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-turbojpeg-ffmpeg"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--turbojpeg --ffmpeg"
  except:
    - master
    - tags

build-version-turbojpeg:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-turbojpeg"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--turbojpeg"
  except:
    - master
    - tags

build-version-ffmpeg:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-ffmpeg"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: "--ffmpeg"
  except:
    - master
    - tags

build-version-no-deps:
  extends: .build-image
  variables:
    IMAGE_TAG: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME-no-deps"
    DOCKERFILE: "Dockerfile"
    BUILD_WITH: ""
330
331
332
  except:
    - master
    - tags