Makefile 23 KB
Newer Older
1
2
REGISTRY=ghcr.io/

3
NAME_BASEIMAGE = typo3gmbh/baseimage
4
MAJOR_BASEIMAGE=3
5
MINOR_BASEIMAGE=0
Susanne Moog's avatar
Susanne Moog committed
6
PATCHLEVEL_BASEIMAGE=17
7
8
9
FULLVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE).$(PATCHLEVEL_BASEIMAGE)
SHORTVERSION_BASEIMAGE=$(MAJOR_BASEIMAGE).$(MINOR_BASEIMAGE)

Christian Kuhn's avatar
Christian Kuhn committed
10

11
NAME_PHP53 = typo3gmbh/php53
Christian Kuhn's avatar
Christian Kuhn committed
12
MAJOR_PHP53=3
13
MINOR_PHP53=0
14
PATCHLEVEL_PHP53=17
15
16
17
18
FULLVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53).$(PATCHLEVEL_PHP53)
SHORTVERSION_PHP53=$(MAJOR_PHP53).$(MINOR_PHP53)

NAME_PHP54 = typo3gmbh/php54
Christian Kuhn's avatar
Christian Kuhn committed
19
MAJOR_PHP54=3
20
MINOR_PHP54=0
21
PATCHLEVEL_PHP54=17
22
23
24
FULLVERSION_PHP54=$(MAJOR_PHP54).$(MINOR_PHP54).$(PATCHLEVEL_PHP54)
SHORTVERSION_PHP54=$(MAJOR_PHP54).$(MINOR_PHP54)

Christian Kuhn's avatar
Christian Kuhn committed
25
NAME_PHP55 = typo3gmbh/php55
Christian Kuhn's avatar
Christian Kuhn committed
26
MAJOR_PHP55=3
27
MINOR_PHP55=0
28
PATCHLEVEL_PHP55=18
Christian Kuhn's avatar
Christian Kuhn committed
29
30
31
32
FULLVERSION_PHP55=$(MAJOR_PHP55).$(MINOR_PHP55).$(PATCHLEVEL_PHP55)
SHORTVERSION_PHP55=$(MAJOR_PHP55).$(MINOR_PHP55)

NAME_PHP56 = typo3gmbh/php56
Christian Kuhn's avatar
Christian Kuhn committed
33
MAJOR_PHP56=3
Christian Kuhn's avatar
Christian Kuhn committed
34
MINOR_PHP56=0
35
PATCHLEVEL_PHP56=18
Christian Kuhn's avatar
Christian Kuhn committed
36
37
38
39
FULLVERSION_PHP56=$(MAJOR_PHP56).$(MINOR_PHP56).$(PATCHLEVEL_PHP56)
SHORTVERSION_PHP56=$(MAJOR_PHP56).$(MINOR_PHP56)

NAME_PHP70 = typo3gmbh/php70
Christian Kuhn's avatar
Christian Kuhn committed
40
MAJOR_PHP70=3
Christian Kuhn's avatar
Christian Kuhn committed
41
MINOR_PHP70=0
Anja Leichsenring's avatar
Anja Leichsenring committed
42
PATCHLEVEL_PHP70=17
Christian Kuhn's avatar
Christian Kuhn committed
43
44
45
46
FULLVERSION_PHP70=$(MAJOR_PHP70).$(MINOR_PHP70).$(PATCHLEVEL_PHP70)
SHORTVERSION_PHP70=$(MAJOR_PHP70).$(MINOR_PHP70)

NAME_PHP71 = typo3gmbh/php71
Christian Kuhn's avatar
Christian Kuhn committed
47
MAJOR_PHP71=3
Christian Kuhn's avatar
Christian Kuhn committed
48
MINOR_PHP71=0
Anja Leichsenring's avatar
Anja Leichsenring committed
49
PATCHLEVEL_PHP71=16
Christian Kuhn's avatar
Christian Kuhn committed
50
51
52
FULLVERSION_PHP71=$(MAJOR_PHP71).$(MINOR_PHP71).$(PATCHLEVEL_PHP71)
SHORTVERSION_PHP71=$(MAJOR_PHP71).$(MINOR_PHP71)

Christian Kuhn's avatar
Christian Kuhn committed
53
NAME_PHP72 = typo3gmbh/php72
Susanne Moog's avatar
Susanne Moog committed
54
MAJOR_PHP72=4
Christian Kuhn's avatar
Christian Kuhn committed
55
MINOR_PHP72=0
Susanne Moog's avatar
Susanne Moog committed
56
PATCHLEVEL_PHP72=1
Christian Kuhn's avatar
Christian Kuhn committed
57
58
59
FULLVERSION_PHP72=$(MAJOR_PHP72).$(MINOR_PHP72).$(PATCHLEVEL_PHP72)
SHORTVERSION_PHP72=$(MAJOR_PHP72).$(MINOR_PHP72)

60
NAME_PHP73 = typo3gmbh/php73
Susanne Moog's avatar
Susanne Moog committed
61
MAJOR_PHP73=4
62
MINOR_PHP73=0
Susanne Moog's avatar
Susanne Moog committed
63
PATCHLEVEL_PHP73=2
64
65
66
FULLVERSION_PHP73=$(MAJOR_PHP73).$(MINOR_PHP73).$(PATCHLEVEL_PHP73)
SHORTVERSION_PHP73=$(MAJOR_PHP73).$(MINOR_PHP73)

67
NAME_PHP74 = typo3gmbh/php74
Susanne Moog's avatar
Susanne Moog committed
68
MAJOR_PHP74=4
69
MINOR_PHP74=0
Susanne Moog's avatar
Susanne Moog committed
70
PATCHLEVEL_PHP74=1
71
72
73
FULLVERSION_PHP74=$(MAJOR_PHP74).$(MINOR_PHP74).$(PATCHLEVEL_PHP74)
SHORTVERSION_PHP74=$(MAJOR_PHP74).$(MINOR_PHP74)

Susanne Moog's avatar
Susanne Moog committed
74
75
76
NAME_PHP80 = typo3gmbh/php80
MAJOR_PHP80=1
MINOR_PHP80=0
Susanne Moog's avatar
Susanne Moog committed
77
PATCHLEVEL_PHP80=2
Susanne Moog's avatar
Susanne Moog committed
78
79
80
FULLVERSION_PHP80=$(MAJOR_PHP80).$(MINOR_PHP80).$(PATCHLEVEL_PHP80)
SHORTVERSION_PHP80=$(MAJOR_PHP80).$(MINOR_PHP80)

Susanne Moog's avatar
Susanne Moog committed
81
NAME_JS = typo3gmbh/js
Andreas Fernandez's avatar
Andreas Fernandez committed
82
MAJOR_JS=3
Susanne Moog's avatar
Susanne Moog committed
83
MINOR_JS=0
Andreas Fernandez's avatar
Andreas Fernandez committed
84
PATCHLEVEL_JS=0
Susanne Moog's avatar
Susanne Moog committed
85
86
FULLVERSION_JS=$(MAJOR_JS).$(MINOR_JS).$(PATCHLEVEL_JS)
SHORTVERSION_JS=$(MAJOR_JS).$(MINOR_JS)
Christian Kuhn's avatar
Christian Kuhn committed
87

88
89
90
NAME_BAMBOO = typo3gmbh/bamboo-remote-agent
MAJOR_BAMBOO=1
MINOR_BAMBOO=0
Anja Leichsenring's avatar
Anja Leichsenring committed
91
PATCHLEVEL_BAMBOO=14
92
93
FULLVERSION_BAMBOO=$(MAJOR_BAMBOO).$(MINOR_BAMBOO).$(PATCHLEVEL_BAMBOO)
SHORTVERSION_BAMBOO=$(MAJOR_BAMBOO).$(MINOR_BAMBOO)
Christian Kuhn's avatar
Christian Kuhn committed
94

95

Christian Kuhn's avatar
Christian Kuhn committed
96

97
98
99
100
.PHONY: \
	all \
	build \
	build_baseimage \
101
102
	build_php53 \
	build_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
103
104
105
106
	build_php55 \
	build_php56 \
	build_php70 \
	build_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
107
	build_php72 \
108
	build_php73 \
109
	build_php74 \
Susanne Moog's avatar
Susanne Moog committed
110
	build_php80 \
Susanne Moog's avatar
Susanne Moog committed
111
	build_js \
112
	build_bamboo \
113
114
	release \
	release_baseimage \
115
116
	release_php53 \
	release_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
117
118
119
120
	release_php55 \
	release_php56 \
	release_php70 \
	release_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
121
	release_php72 \
122
	release_php73 \
123
	release_php74 \
Susanne Moog's avatar
Susanne Moog committed
124
	release_php80 \
Susanne Moog's avatar
Susanne Moog committed
125
	release_js \
126
	release_bamboo \
127
128
	clean \
	clean_baseimage \
129
130
	clean_php53 \
	clean_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
131
132
133
134
	clean_php55 \
	clean_php56 \
	clean_php70 \
	clean_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
135
	clean_php72 \
136
	clean_php73 \
137
	clean_php74 \
Susanne Moog's avatar
Susanne Moog committed
138
	clean_php80 \
Susanne Moog's avatar
Susanne Moog committed
139
	clean_js \
140
	clean_bamboo \
141
142
	clean_images \
	clean_images_baseimage \
143
144
	clean_images_php53 \
	clean_images_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
145
146
147
148
	clean_images_php55 \
	clean_images_php56 \
	clean_images_php70 \
	clean_images_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
149
	clean_images_php72 \
150
	clean_images_php73 \
151
	clean_images_php74 \
Susanne Moog's avatar
Susanne Moog committed
152
	clean_images_php80 \
Susanne Moog's avatar
Susanne Moog committed
153
	clean_images_js \
154
	clean_images_bamboo
155
156


Christian Kuhn's avatar
Christian Kuhn committed
157

158
159
160
161
162
all: \
	build

build: \
	build_baseimage \
163
	build_php \
Susanne Moog's avatar
Susanne Moog committed
164
165
	build_bamboo \
	build_js
166
167

build_php: \
168
169
	build_php53 \
	build_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
170
171
172
173
	build_php55 \
	build_php56 \
	build_php70 \
	build_php71 \
174
	build_php72 \
175
	build_php73 \
Susanne Moog's avatar
Susanne Moog committed
176
177
	build_php74 \
	build_php80
178

179
180
release: \
	release_baseimage \
181
	release_php \
Susanne Moog's avatar
Susanne Moog committed
182
183
	release_bamboo \
	release_js
184
185

release_php: \
186
187
	release_php53 \
	release_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
188
189
190
191
	release_php55 \
	release_php56 \
	release_php70 \
	release_php71 \
192
	release_php72 \
193
	release_php73 \
Susanne Moog's avatar
Susanne Moog committed
194
195
	release_php74 \
	release_php80
196

197
198
clean: \
	clean_baseimage \
199
200
	clean_php53 \
	clean_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
201
202
203
204
	clean_php55 \
	clean_php56 \
	clean_php70 \
	clean_php71 \
205
	clean_php72 \
206
	clean_php73 \
207
	clean_php74 \
Susanne Moog's avatar
Susanne Moog committed
208
	clean_php80 \
Susanne Moog's avatar
Susanne Moog committed
209
210
	clean_bamboo \
	clean_js
211
212
213
214


clean_images: \
	clean_images_baseimage \
215
216
	clean_images_php53 \
	clean_images_php54 \
Christian Kuhn's avatar
Christian Kuhn committed
217
218
219
220
	clean_images_php55 \
	clean_images_php56 \
	clean_images_php70 \
	clean_images_php71 \
Christian Kuhn's avatar
Christian Kuhn committed
221
	clean_images_php72 \
222
	clean_images_php73 \
223
	clean_images_php74 \
Susanne Moog's avatar
Susanne Moog committed
224
	clean_images_php80 \
Susanne Moog's avatar
Susanne Moog committed
225
226
	clean_images_bamboo \
	clean_js
227
228
229
230
231


build_baseimage:
	rm -rf build_baseimage
	cp -pR baseimage build_baseimage
Susanne Moog's avatar
Susanne Moog committed
232
	docker build --pull -t $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) build_baseimage
233
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)
234
235
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(REGISTRY)$(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE)
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(REGISTRY)$(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)
236
237
238
239
240
241

release_baseimage:
	@if ! docker images $(NAME_BASEIMAGE) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BASEIMAGE); then \
		echo "$(NAME_BASEIMAGE) version $(FULLVERSION_BASEIMAGE) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(NAME_BASEIMAGE):latest
242
	docker tag $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) $(REGISTRY)$(NAME_BASEIMAGE):latest
243
244
245
	docker push $(NAME_BASEIMAGE):latest
	docker push $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE)
	docker push $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)
246
247
248
	docker push $(REGISTRY)$(NAME_BASEIMAGE):latest
	docker push $(REGISTRY)$(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE)
	docker push $(REGISTRY)$(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE)
249
250
251
252
253
254
255
256

clean_baseimage:
	rm -rf build_baseimage

clean_images_baseimage:
	docker rmi $(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) || true
	docker rmi $(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE) || true
	docker rmi $(NAME_BASEIMAGE):latest || true
257
258
259
	docker rmi $(REGISTRY)$(NAME_BASEIMAGE):$(FULLVERSION_BASEIMAGE) || true
	docker rmi $(REGISTRY)$(NAME_BASEIMAGE):$(SHORTVERSION_BASEIMAGE) || true
	docker rmi $(REGISTRY)$(NAME_BASEIMAGE):latest || true
260
261


Christian Kuhn's avatar
Christian Kuhn committed
262

263
build_php53:
264
265
266
267
	rm -rf build_php53
	cp -pR php53 build_php53
	docker build -t $(NAME_PHP53):$(FULLVERSION_PHP53) build_php53
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(NAME_PHP53):$(SHORTVERSION_PHP53)
268
269
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(REGISTRY)$(NAME_PHP53):$(SHORTVERSION_PHP53)
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(REGISTRY)$(NAME_PHP53):$(FULLVERSION_PHP53)
270
271
272
273
274
275

release_php53:
	@if ! docker images $(NAME_PHP53) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP53); then \
		echo "$(NAME_PHP53) version $(FULLVERSION_PHP53) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(NAME_PHP53):latest
276
	docker tag $(NAME_PHP53):$(FULLVERSION_PHP53) $(REGISTRY)$(NAME_PHP53):latest
277
278
279
	docker push $(NAME_PHP53):latest
	docker push $(NAME_PHP53):$(FULLVERSION_PHP53)
	docker push $(NAME_PHP53):$(SHORTVERSION_PHP53)
280
281
282
	docker push $(REGISTRY)$(NAME_PHP53):latest
	docker push $(REGISTRY)$(NAME_PHP53):$(FULLVERSION_PHP53)
	docker push $(REGISTRY)$(NAME_PHP53):$(SHORTVERSION_PHP53)
283
284
285
286
287
288
289
290

clean_php53:
	rm -rf build_php53

clean_images_php53:
	docker rmi $(NAME_PHP53):latest || true
	docker rmi $(NAME_PHP53):$(SHORTVERSION_PHP53) || true
	docker rmi $(NAME_PHP53):$(FULLVERSION_PHP53) || true
291
292
293
	docker rmi $(REGISTRY)$(NAME_PHP53):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP53):$(SHORTVERSION_PHP53) || true
	docker rmi $(REGISTRY)$(NAME_PHP53):$(FULLVERSION_PHP53) || true
294
295


296
build_php54:
297
298
299
300
	rm -rf build_php54
	cp -pR php54 build_php54
	docker build -t $(NAME_PHP54):$(FULLVERSION_PHP54) build_php54
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(NAME_PHP54):$(SHORTVERSION_PHP54)
301
302
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(REGISTRY)$(NAME_PHP54):$(SHORTVERSION_PHP54)
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(REGISTRY)$(NAME_PHP54):$(FULLVERSION_PHP54)
303
304
305
306
307
308

release_php54:
	@if ! docker images $(NAME_PHP54) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP54); then \
		echo "$(NAME_PHP54) version $(FULLVERSION_PHP54) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(NAME_PHP54):latest
309
	docker tag $(NAME_PHP54):$(FULLVERSION_PHP54) $(REGISTRY)$(NAME_PHP54):latest
310
311
312
	docker push $(NAME_PHP54):latest
	docker push $(NAME_PHP54):$(FULLVERSION_PHP54)
	docker push $(NAME_PHP54):$(SHORTVERSION_PHP54)
313
314
315
	docker push $(REGISTRY)$(NAME_PHP54):latest
	docker push $(REGISTRY)$(NAME_PHP54):$(FULLVERSION_PHP54)
	docker push $(REGISTRY)$(NAME_PHP54):$(SHORTVERSION_PHP54)
316
317
318
319
320
321
322
323

clean_php54:
	rm -rf build_php54

clean_images_php54:
	docker rmi $(NAME_PHP54):latest || true
	docker rmi $(NAME_PHP54):$(SHORTVERSION_PHP54) || true
	docker rmi $(NAME_PHP54):$(FULLVERSION_PHP54) || true
324
325
326
	docker rmi $(REGISTRY)$(NAME_PHP54):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP54):$(SHORTVERSION_PHP54) || true
	docker rmi $(REGISTRY)$(NAME_PHP54):$(FULLVERSION_PHP54) || true
327
328


329
build_php55:
Christian Kuhn's avatar
Christian Kuhn committed
330
331
332
333
	rm -rf build_php55
	cp -pR php55 build_php55
	docker build -t $(NAME_PHP55):$(FULLVERSION_PHP55) build_php55
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(NAME_PHP55):$(SHORTVERSION_PHP55)
334
335
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(REGISTRY)$(NAME_PHP55):$(SHORTVERSION_PHP55)
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(REGISTRY)$(NAME_PHP55):$(FULLVERSION_PHP55)
Christian Kuhn's avatar
Christian Kuhn committed
336
337
338
339
340
341

release_php55:
	@if ! docker images $(NAME_PHP55) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP55); then \
		echo "$(NAME_PHP55) version $(FULLVERSION_PHP55) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(NAME_PHP55):latest
342
	docker tag $(NAME_PHP55):$(FULLVERSION_PHP55) $(REGISTRY)$(NAME_PHP55):latest
Christian Kuhn's avatar
Christian Kuhn committed
343
344
345
	docker push $(NAME_PHP55):latest
	docker push $(NAME_PHP55):$(FULLVERSION_PHP55)
	docker push $(NAME_PHP55):$(SHORTVERSION_PHP55)
346
347
348
	docker push $(REGISTRY)$(NAME_PHP55):latest
	docker push $(REGISTRY)$(NAME_PHP55):$(FULLVERSION_PHP55)
	docker push $(REGISTRY)$(NAME_PHP55):$(SHORTVERSION_PHP55)
Christian Kuhn's avatar
Christian Kuhn committed
349
350
351
352
353
354
355
356

clean_php55:
	rm -rf build_php55

clean_images_php55:
	docker rmi $(NAME_PHP55):latest || true
	docker rmi $(NAME_PHP55):$(SHORTVERSION_PHP55) || true
	docker rmi $(NAME_PHP55):$(FULLVERSION_PHP55) || true
357
358
359
	docker rmi $(REGISTRY)$(NAME_PHP55):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP55):$(SHORTVERSION_PHP55) || true
	docker rmi $(REGISTRY)$(NAME_PHP55):$(FULLVERSION_PHP55) || true
Christian Kuhn's avatar
Christian Kuhn committed
360
361


362
build_php56:
Christian Kuhn's avatar
Christian Kuhn committed
363
364
365
366
	rm -rf build_php56
	cp -pR php56 build_php56
	docker build -t $(NAME_PHP56):$(FULLVERSION_PHP56) build_php56
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(NAME_PHP56):$(SHORTVERSION_PHP56)
367
368
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(REGISTRY)$(NAME_PHP56):$(SHORTVERSION_PHP56)
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(REGISTRY)$(NAME_PHP56):$(FULLVERSION_PHP56)
Christian Kuhn's avatar
Christian Kuhn committed
369
370
371
372
373
374

release_php56:
	@if ! docker images $(NAME_PHP56) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP56); then \
		echo "$(NAME_PHP56) version $(FULLVERSION_PHP56) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(NAME_PHP56):latest
375
	docker tag $(NAME_PHP56):$(FULLVERSION_PHP56) $(REGISTRY)$(NAME_PHP56):latest
Christian Kuhn's avatar
Christian Kuhn committed
376
377
378
	docker push $(NAME_PHP56):latest
	docker push $(NAME_PHP56):$(FULLVERSION_PHP56)
	docker push $(NAME_PHP56):$(SHORTVERSION_PHP56)
379
380
381
	docker push $(REGISTRY)$(NAME_PHP56):latest
	docker push $(REGISTRY)$(NAME_PHP56):$(FULLVERSION_PHP56)
	docker push $(REGISTRY)$(NAME_PHP56):$(SHORTVERSION_PHP56)
Christian Kuhn's avatar
Christian Kuhn committed
382
383
384
385
386
387
388
389

clean_php56:
	rm -rf build_php56

clean_images_php56:
	docker rmi $(NAME_PHP56):latest || true
	docker rmi $(NAME_PHP56):$(SHORTVERSION_PHP56) || true
	docker rmi $(NAME_PHP56):$(FULLVERSION_PHP56) || true
390
391
392
	docker rmi $(REGISTRY)$(NAME_PHP56):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP56):$(SHORTVERSION_PHP56) || true
	docker rmi $(REGISTRY)$(NAME_PHP56):$(FULLVERSION_PHP56) || true
Christian Kuhn's avatar
Christian Kuhn committed
393
394


395
build_php70:
Christian Kuhn's avatar
Christian Kuhn committed
396
397
398
399
	rm -rf build_php70
	cp -pR php70 build_php70
	docker build -t $(NAME_PHP70):$(FULLVERSION_PHP70) build_php70
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(NAME_PHP70):$(SHORTVERSION_PHP70)
400
401
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(REGISTRY)$(NAME_PHP70):$(SHORTVERSION_PHP70)
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(REGISTRY)$(NAME_PHP70):$(FULLVERSION_PHP70)
Christian Kuhn's avatar
Christian Kuhn committed
402
403
404
405
406
407

release_php70:
	@if ! docker images $(NAME_PHP70) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP70); then \
		echo "$(NAME_PHP70) version $(FULLVERSION_PHP70) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(NAME_PHP70):latest
408
	docker tag $(NAME_PHP70):$(FULLVERSION_PHP70) $(REGISTRY)$(NAME_PHP70):latest
Christian Kuhn's avatar
Christian Kuhn committed
409
410
411
	docker push $(NAME_PHP70):latest
	docker push $(NAME_PHP70):$(FULLVERSION_PHP70)
	docker push $(NAME_PHP70):$(SHORTVERSION_PHP70)
412
413
414
	docker push $(REGISTRY)$(NAME_PHP70):latest
	docker push $(REGISTRY)$(NAME_PHP70):$(FULLVERSION_PHP70)
	docker push $(REGISTRY)$(NAME_PHP70):$(SHORTVERSION_PHP70)
Christian Kuhn's avatar
Christian Kuhn committed
415
416
417
418
419
420
421
422

clean_php70:
	rm -rf build_php70

clean_images_php70:
	docker rmi $(NAME_PHP70):latest || true
	docker rmi $(NAME_PHP70):$(SHORTVERSION_PHP70) || true
	docker rmi $(NAME_PHP70):$(FULLVERSION_PHP70) || true
423
424
425
	docker rmi $(REGISTRY)$(NAME_PHP70):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP70):$(SHORTVERSION_PHP70) || true
	docker rmi $(REGISTRY)$(NAME_PHP70):$(FULLVERSION_PHP70) || true
Christian Kuhn's avatar
Christian Kuhn committed
426
427


428
build_php71:
Christian Kuhn's avatar
Christian Kuhn committed
429
430
431
432
	rm -rf build_php71
	cp -pR php71 build_php71
	docker build -t $(NAME_PHP71):$(FULLVERSION_PHP71) build_php71
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(NAME_PHP71):$(SHORTVERSION_PHP71)
433
434
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(REGISTRY)$(NAME_PHP71):$(SHORTVERSION_PHP71)
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(REGISTRY)$(NAME_PHP71):$(FULLVERSION_PHP71)
Christian Kuhn's avatar
Christian Kuhn committed
435
436
437
438
439
440

release_php71:
	@if ! docker images $(NAME_PHP71) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP71); then \
		echo "$(NAME_PHP71) version $(FULLVERSION_PHP71) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(NAME_PHP71):latest
441
	docker tag $(NAME_PHP71):$(FULLVERSION_PHP71) $(REGISTRY)$(NAME_PHP71):latest
Christian Kuhn's avatar
Christian Kuhn committed
442
443
444
	docker push $(NAME_PHP71):latest
	docker push $(NAME_PHP71):$(FULLVERSION_PHP71)
	docker push $(NAME_PHP71):$(SHORTVERSION_PHP71)
445
446
447
	docker push $(REGISTRY)$(NAME_PHP71):latest
	docker push $(REGISTRY)$(NAME_PHP71):$(FULLVERSION_PHP71)
	docker push $(REGISTRY)$(NAME_PHP71):$(SHORTVERSION_PHP71)
Christian Kuhn's avatar
Christian Kuhn committed
448
449
450
451
452
453
454
455

clean_php71:
	rm -rf build_php71

clean_images_php71:
	docker rmi $(NAME_PHP71):latest || true
	docker rmi $(NAME_PHP71):$(SHORTVERSION_PHP71) || true
	docker rmi $(NAME_PHP71):$(FULLVERSION_PHP71) || true
456
457
458
	docker rmi $(REGISTRY)$(NAME_PHP71):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP71):$(SHORTVERSION_PHP71) || true
	docker rmi $(REGISTRY)$(NAME_PHP71):$(FULLVERSION_PHP71) || true
Christian Kuhn's avatar
Christian Kuhn committed
459
460


461
build_php72:
Christian Kuhn's avatar
Christian Kuhn committed
462
463
464
465
	rm -rf build_php72
	cp -pR php72 build_php72
	docker build -t $(NAME_PHP72):$(FULLVERSION_PHP72) build_php72
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(NAME_PHP72):$(SHORTVERSION_PHP72)
466
467
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(REGISTRY)$(NAME_PHP72):$(SHORTVERSION_PHP72)
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(REGISTRY)$(NAME_PHP72):$(FULLVERSION_PHP72)
Christian Kuhn's avatar
Christian Kuhn committed
468
469
470
471
472
473

release_php72:
	@if ! docker images $(NAME_PHP72) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP72); then \
		echo "$(NAME_PHP72) version $(FULLVERSION_PHP72) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(NAME_PHP72):latest
474
	docker tag $(NAME_PHP72):$(FULLVERSION_PHP72) $(REGISTRY)$(NAME_PHP72):latest
Christian Kuhn's avatar
Christian Kuhn committed
475
476
477
	docker push $(NAME_PHP72):latest
	docker push $(NAME_PHP72):$(FULLVERSION_PHP72)
	docker push $(NAME_PHP72):$(SHORTVERSION_PHP72)
478
479
480
	docker push $(REGISTRY)$(NAME_PHP72):latest
	docker push $(REGISTRY)$(NAME_PHP72):$(FULLVERSION_PHP72)
	docker push $(REGISTRY)$(NAME_PHP72):$(SHORTVERSION_PHP72)
Christian Kuhn's avatar
Christian Kuhn committed
481
482
483
484
485
486
487
488

clean_php72:
	rm -rf build_php72

clean_images_php72:
	docker rmi $(NAME_PHP72):latest || true
	docker rmi $(NAME_PHP72):$(SHORTVERSION_PHP72) || true
	docker rmi $(NAME_PHP72):$(FULLVERSION_PHP72) || true
489
490
491
	docker rmi $(REGISTRY)$(NAME_PHP72):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP72):$(SHORTVERSION_PHP72) || true
	docker rmi $(REGISTRY)$(NAME_PHP72):$(FULLVERSION_PHP72) || true
Christian Kuhn's avatar
Christian Kuhn committed
492
493


494
build_php73:
495
496
497
498
	rm -rf build_php73
	cp -pR php73 build_php73
	docker build -t $(NAME_PHP73):$(FULLVERSION_PHP73) build_php73
	docker tag $(NAME_PHP73):$(FULLVERSION_PHP73) $(NAME_PHP73):$(SHORTVERSION_PHP73)
499
500
	docker tag $(NAME_PHP73):$(FULLVERSION_PHP73) $(REGISTRY)$(NAME_PHP73):$(SHORTVERSION_PHP73)
	docker tag $(NAME_PHP73):$(FULLVERSION_PHP73) $(REGISTRY)$(NAME_PHP73):$(FULLVERSION_PHP73)
501
502
503
504
505
506

release_php73:
	@if ! docker images $(NAME_PHP73) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP73); then \
		echo "$(NAME_PHP73) version $(FULLVERSION_PHP73) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP73):$(FULLVERSION_PHP73) $(NAME_PHP73):latest
507
	docker tag $(NAME_PHP73):$(FULLVERSION_PHP73) $(REGISTRY)$(NAME_PHP73):latest
508
509
510
	docker push $(NAME_PHP73):latest
	docker push $(NAME_PHP73):$(FULLVERSION_PHP73)
	docker push $(NAME_PHP73):$(SHORTVERSION_PHP73)
511
512
513
	docker push $(REGISTRY)$(NAME_PHP73):latest
	docker push $(REGISTRY)$(NAME_PHP73):$(FULLVERSION_PHP73)
	docker push $(REGISTRY)$(NAME_PHP73):$(SHORTVERSION_PHP73)
514
515
516
517
518
519
520
521

clean_php73:
	rm -rf build_php73

clean_images_php73:
	docker rmi $(NAME_PHP73):latest || true
	docker rmi $(NAME_PHP73):$(SHORTVERSION_PHP73) || true
	docker rmi $(NAME_PHP73):$(FULLVERSION_PHP73) || true
522
523
524
	docker rmi $(REGISTRY)$(NAME_PHP73):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP73):$(SHORTVERSION_PHP73) || true
	docker rmi $(REGISTRY)$(NAME_PHP73):$(FULLVERSION_PHP73) || true
525
526


527
build_php74:
528
529
530
531
	rm -rf build_php74
	cp -pR php74 build_php74
	docker build -t $(NAME_PHP74):$(FULLVERSION_PHP74) build_php74
	docker tag $(NAME_PHP74):$(FULLVERSION_PHP74) $(NAME_PHP74):$(SHORTVERSION_PHP74)
532
533
	docker tag $(NAME_PHP74):$(FULLVERSION_PHP74) $(REGISTRY)$(NAME_PHP74):$(SHORTVERSION_PHP74)
	docker tag $(NAME_PHP74):$(FULLVERSION_PHP74) $(REGISTRY)$(NAME_PHP74):$(FULLVERSION_PHP74)
534
535
536
537
538
539

release_php74:
	@if ! docker images $(NAME_PHP74) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP74); then \
		echo "$(NAME_PHP74) version $(FULLVERSION_PHP74) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP74):$(FULLVERSION_PHP74) $(NAME_PHP74):latest
540
	docker tag $(NAME_PHP74):$(FULLVERSION_PHP74) $(REGISTRY)$(NAME_PHP74):latest
541
542
543
	docker push $(NAME_PHP74):latest
	docker push $(NAME_PHP74):$(FULLVERSION_PHP74)
	docker push $(NAME_PHP74):$(SHORTVERSION_PHP74)
544
545
546
	docker push $(REGISTRY)$(NAME_PHP74):latest
	docker push $(REGISTRY)$(NAME_PHP74):$(FULLVERSION_PHP74)
	docker push $(REGISTRY)$(NAME_PHP74):$(SHORTVERSION_PHP74)
547
548
549
550
551
552
553
554

clean_php74:
	rm -rf build_php74

clean_images_php74:
	docker rmi $(NAME_PHP74):latest || true
	docker rmi $(NAME_PHP74):$(SHORTVERSION_PHP74) || true
	docker rmi $(NAME_PHP74):$(FULLVERSION_PHP74) || true
555
556
557
	docker rmi $(REGISTRY)$(NAME_PHP74):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP74):$(SHORTVERSION_PHP74) || true
	docker rmi $(REGISTRY)$(NAME_PHP74):$(FULLVERSION_PHP74) || true
558

Susanne Moog's avatar
Susanne Moog committed
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
build_php80:
	rm -rf build_php80
	cp -pR php80 build_php80
	docker build -t $(NAME_PHP80):$(FULLVERSION_PHP80) build_php80
	docker tag $(NAME_PHP80):$(FULLVERSION_PHP80) $(NAME_PHP80):$(SHORTVERSION_PHP80)
	docker tag $(NAME_PHP80):$(FULLVERSION_PHP80) $(REGISTRY)$(NAME_PHP80):$(SHORTVERSION_PHP80)
	docker tag $(NAME_PHP80):$(FULLVERSION_PHP80) $(REGISTRY)$(NAME_PHP80):$(FULLVERSION_PHP80)

release_php80:
	@if ! docker images $(NAME_PHP80) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_PHP80); then \
		echo "$(NAME_PHP80) version $(FULLVERSION_PHP80) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_PHP80):$(FULLVERSION_PHP80) $(NAME_PHP80):latest
	docker tag $(NAME_PHP80):$(FULLVERSION_PHP80) $(REGISTRY)$(NAME_PHP80):latest
	docker push $(NAME_PHP80):latest
	docker push $(NAME_PHP80):$(FULLVERSION_PHP80)
	docker push $(NAME_PHP80):$(SHORTVERSION_PHP80)
	docker push $(REGISTRY)$(NAME_PHP80):latest
	docker push $(REGISTRY)$(NAME_PHP80):$(FULLVERSION_PHP80)
	docker push $(REGISTRY)$(NAME_PHP80):$(SHORTVERSION_PHP80)

clean_php80:
	rm -rf build_php80

clean_images_php80:
	docker rmi $(NAME_PHP80):latest || true
	docker rmi $(NAME_PHP80):$(SHORTVERSION_PHP80) || true
	docker rmi $(NAME_PHP80):$(FULLVERSION_PHP80) || true
	docker rmi $(REGISTRY)$(NAME_PHP80):latest || true
	docker rmi $(REGISTRY)$(NAME_PHP80):$(SHORTVERSION_PHP80) || true
	docker rmi $(REGISTRY)$(NAME_PHP80):$(FULLVERSION_PHP80) || true

Christian Kuhn's avatar
Christian Kuhn committed
591

592
build_bamboo:
593
594
595
	rm -rf build_bamboo
	cp -pR bamboo-remote-agent build_bamboo
	docker build -t $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) build_bamboo
596

597
598
599
release_bamboo:
	@if ! docker images $(NAME_BAMBOO) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_BAMBOO); then \
		echo "$(NAME_BAMBOO) version $(FULLVERSION_BAMBOO) is not yet built. Please run 'make build'"; false; \
Christian Kuhn's avatar
Christian Kuhn committed
600
	fi
601
602
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(NAME_BAMBOO):$(SHORTVERSION_BAMBOO)
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(NAME_BAMBOO):latest
603
604
605
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(REGISTRY)$(NAME_BAMBOO):$(SHORTVERSION_BAMBOO)
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(REGISTRY)$(NAME_BAMBOO):$(FULLVERSION_BAMBOO)
	docker tag $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) $(REGISTRY)$(NAME_BAMBOO):latest
606
607
608
	docker push $(NAME_BAMBOO):latest
	docker push $(NAME_BAMBOO):$(FULLVERSION_BAMBOO)
	docker push $(NAME_BAMBOO):$(SHORTVERSION_BAMBOO)
609
610
611
	docker push $(REGISTRY)$(NAME_BAMBOO):latest
	docker push $(REGISTRY)$(NAME_BAMBOO):$(FULLVERSION_BAMBOO)
	docker push $(REGISTRY)$(NAME_BAMBOO):$(SHORTVERSION_BAMBOO)
612
613
614
615
616
617
618
619

clean_bamboo:
	rm -rf build_bamboo

clean_images_bamboo:
	docker rmi $(NAME_BAMBOO):latest || true
	docker rmi $(NAME_BAMBOO):$(SHORTVERSION_BAMBOO) || true
	docker rmi $(NAME_BAMBOO):$(FULLVERSION_BAMBOO) || true
620
621
622
	docker rmi $(REGISTRY)$(NAME_BAMBOO):latest || true
	docker rmi $(REGISTRY)$(NAME_BAMBOO):$(SHORTVERSION_BAMBOO) || true
	docker rmi $(REGISTRY)$(NAME_BAMBOO):$(FULLVERSION_BAMBOO) || true
Susanne Moog's avatar
Susanne Moog committed
623
624
625
626
627
628
629
630
631
632
633
634
635
636



build_js:
	rm -rf build_js
	cp -pR js build_js
	docker build -t $(NAME_JS):$(FULLVERSION_JS) build_js

release_js:
	@if ! docker images $(NAME_JS) | awk '{ print $$2 }' | grep -q -F $(FULLVERSION_JS); then \
		echo "$(NAME_JS) version $(FULLVERSION_JS) is not yet built. Please run 'make build'"; false; \
	fi
	docker tag $(NAME_JS):$(FULLVERSION_JS) $(NAME_JS):$(SHORTVERSION_JS)
	docker tag $(NAME_JS):$(FULLVERSION_JS) $(NAME_JS):latest
637
638
639
	docker tag $(NAME_JS):$(FULLVERSION_JS) $(REGISTRY)$(NAME_JS):$(SHORTVERSION_JS)
	docker tag $(NAME_JS):$(FULLVERSION_JS) $(REGISTRY)$(NAME_JS):$(FULLVERSION_JS)
	docker tag $(NAME_JS):$(FULLVERSION_JS) $(REGISTRY)$(NAME_JS):latest
Susanne Moog's avatar
Susanne Moog committed
640
641
642
	docker push $(NAME_JS):latest
	docker push $(NAME_JS):$(FULLVERSION_JS)
	docker push $(NAME_JS):$(SHORTVERSION_JS)
643
644
645
	docker push $(REGISTRY)$(NAME_JS):latest
	docker push $(REGISTRY)$(NAME_JS):$(FULLVERSION_JS)
	docker push $(REGISTRY)$(NAME_JS):$(SHORTVERSION_JS)
Susanne Moog's avatar
Susanne Moog committed
646
647
648
649
650
651
652
653

clean_js:
	rm -rf build_js

clean_images_js:
	docker rmi $(NAME_JS):latest || true
	docker rmi $(NAME_JS):$(SHORTVERSION_JS) || true
	docker rmi $(NAME_JS):$(FULLVERSION_JS) || true
654
655
656
	docker rmi $(REGISTRY)$(NAME_JS):latest || true
	docker rmi $(REGISTRY)$(NAME_JS):$(SHORTVERSION_JS) || true
	docker rmi $(REGISTRY)$(NAME_JS):$(FULLVERSION_JS) || true