1
1
version : " 1.0"
2
- steps :
2
+ steps :
3
3
main_clone :
4
4
title : ' Cloning main repository...'
5
5
type : git-clone
8
8
git : ${{GIT_CONTEXT}}
9
9
10
10
build_image :
11
- title : " Building the image..."
12
- type : build
13
- working_directory : ${{WORKDIR}}
14
- disable_push : true
15
- dockerfile : ./Dockerfile
16
- image_name : ${{IMAGE_NAME}}
17
- tag : ${{CF_SHORT_REVISION}}
11
+ type : parallel
12
+ steps :
18
13
19
- push_dev :
14
+ build_image_alpine :
15
+ title : " Building the alpine image..."
16
+ type : build
17
+ working_directory : ${{WORKDIR}}
18
+ disable_push : true
19
+ dockerfile : ./Dockerfile
20
+ image_name : ${{IMAGE_NAME}}
21
+ tag : ${{CF_SHORT_REVISION}}
22
+
23
+ build_image_debian :
24
+ title : " Building the debian image..."
25
+ type : build
26
+ working_directory : ${{WORKDIR}}
27
+ disable_push : true
28
+ dockerfile : ./Dockerfile-debian
29
+ image_name : ${{IMAGE_NAME}}
30
+ tag : ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}
31
+
32
+ push_dev_alpine :
20
33
type : push
21
- candidate : ${{build_image }}
22
- title : " Pushing image to registry with revision tag"
34
+ candidate : ${{build_image_alpine }}
35
+ title : " Pushing alpine image to registry with revision tag"
23
36
tag : ${{CF_SHORT_REVISION}}${{ARM_TAG_POSTFIX}}
24
37
scale :
25
38
push_quay_dev :
@@ -32,10 +45,26 @@ steps:
32
45
registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
33
46
title : " Pushing image to gcr.io registry with revision tag"
34
47
35
- push_master :
48
+ push_dev_debian :
36
49
type : push
37
- candidate : ${{build_image}}
38
- title : " Pushing image with release tag"
50
+ candidate : ${{build_image_debian}}
51
+ title : " Pushing debian image to registry with revision tag"
52
+ tag : ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
53
+ scale :
54
+ push_quay_dev_debian :
55
+ registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
56
+ title : " Pushing image to quay.io registry with revision tag"
57
+ push_dockerhub_dev_debian :
58
+ registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
59
+ title : " Pushing image to dockerhub registry with revision tag"
60
+ push_gcr_enterprise_dev_debian :
61
+ registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
62
+ title : " Pushing image to gcr.io registry with revision tag"
63
+
64
+ push_master_alpine :
65
+ type : push
66
+ candidate : ${{build_image_alpine}}
67
+ title : " Pushing alpine image with release tag"
39
68
when :
40
69
branch :
41
70
only : [ master ]
@@ -45,10 +74,31 @@ steps:
45
74
scale :
46
75
push_quay_prod :
47
76
registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
48
- title : " Pushing image to quay.io registry with release tag"
77
+ title : " Pushing alpine image to quay.io registry with release tag"
49
78
push_dockerhub_prod :
50
79
registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
51
80
title : " Pushing image to dockerhub registry with release tag"
52
81
push_gcr_enterprise_prod :
53
82
registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
54
83
title : " Pushing image to gcr.io registry with release tag"
84
+
85
+ push_master_debian :
86
+ type : push
87
+ candidate : ${{build_image_debian}}
88
+ title : " Pushing debian image with release tag"
89
+ when :
90
+ branch :
91
+ only : [ master ]
92
+ tags :
93
+ - " ${{PACKAGE_VERSION}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
94
+ - " latest${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
95
+ scale :
96
+ push_quay_prod_debian :
97
+ registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
98
+ title : " Pushing image to quay.io registry with release tag"
99
+ push_dockerhub_prod_debian :
100
+ registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
101
+ title : " Pushing image to dockerhub registry with release tag"
102
+ push_gcr_enterprise_prod_debian :
103
+ registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
104
+ title : " Pushing image to gcr.io registry with release tag"
0 commit comments