1
1
version : " 1.0"
2
+ mode : parallel
3
+ stages :
4
+ - prepare
5
+ - build
6
+ - push-dev
7
+ - push-master
2
8
steps :
3
9
main_clone :
10
+ stage : prepare
4
11
title : ' Cloning main repository...'
5
12
type : git-clone
6
13
repo : ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
7
14
revision : ${{CF_REVISION}}
8
15
git : ${{GIT_CONTEXT}}
9
16
10
17
build_image :
18
+ stage : build
11
19
type : parallel
12
20
steps :
13
21
@@ -29,7 +37,31 @@ steps:
29
37
image_name : ${{IMAGE_NAME}}
30
38
tag : ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}
31
39
40
+ build_image_alpine_rootless :
41
+ title : " Building the alpine image..."
42
+ type : build
43
+ working_directory : ${{WORKDIR}}
44
+ disable_push : true
45
+ dockerfile : ./Dockerfile-rootless
46
+ image_name : ${{IMAGE_NAME}}
47
+ tag : ${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}
48
+
49
+ build_image_debian_rootless :
50
+ title : " Building the debian image..."
51
+ type : build
52
+ working_directory : ${{WORKDIR}}
53
+ disable_push : true
54
+ dockerfile : ./Dockerfile-debian-rootless
55
+ image_name : ${{IMAGE_NAME}}
56
+ tag : ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}
57
+ when :
58
+ steps :
59
+ - name : main_clone
60
+ on :
61
+ - success
62
+
32
63
push_dev_alpine :
64
+ stage : push-dev
33
65
type : push
34
66
candidate : ${{build_image_alpine}}
35
67
title : " Pushing alpine image to registry with revision tag"
@@ -44,8 +76,14 @@ steps:
44
76
push_gcr_enterprise_dev :
45
77
registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
46
78
title : " Pushing image to gcr.io registry with revision tag"
79
+ when :
80
+ steps :
81
+ - name : build_image
82
+ on :
83
+ - success
47
84
48
85
push_dev_debian :
86
+ stage : push-dev
49
87
type : push
50
88
candidate : ${{build_image_debian}}
51
89
title : " Pushing debian image to registry with revision tag"
@@ -60,14 +98,68 @@ steps:
60
98
push_gcr_enterprise_dev_debian :
61
99
registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
62
100
title : " Pushing image to gcr.io registry with revision tag"
101
+ when :
102
+ steps :
103
+ - name : build_image
104
+ on :
105
+ - success
106
+
107
+ push_dev_alpine_rootless :
108
+ stage : push-dev
109
+ type : push
110
+ candidate : ${{build_image_alpine_rootless}}
111
+ title : " Pushing rootless alpine image to registry with revision tag"
112
+ tag : ${{CF_SHORT_REVISION}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
113
+ scale :
114
+ push_quay_dev_rootless :
115
+ registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
116
+ title : " Pushing image to quay.io registry with revision tag"
117
+ push_dockerhub_dev_rootless :
118
+ registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
119
+ title : " Pushing image to dockerhub registry with revision tag"
120
+ push_gcr_enterprise_dev_rootless :
121
+ registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
122
+ title : " Pushing image to gcr.io registry with revision tag"
123
+ when :
124
+ steps :
125
+ - name : build_image
126
+ on :
127
+ - success
128
+
129
+ push_dev_debian_rootless :
130
+ stage : push-dev
131
+ type : push
132
+ candidate : ${{build_image_debian_rootless}}
133
+ title : " Pushing rootless debian image to registry with revision tag"
134
+ tag : ${{CF_SHORT_REVISION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}
135
+ scale :
136
+ push_quay_dev_debian_rootless :
137
+ registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
138
+ title : " Pushing image to quay.io registry with revision tag"
139
+ push_dockerhub_dev_debian_rootless :
140
+ registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
141
+ title : " Pushing image to dockerhub registry with revision tag"
142
+ push_gcr_enterprise_dev_debian_rootless :
143
+ registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
144
+ title : " Pushing image to gcr.io registry with revision tag"
145
+ when :
146
+ steps :
147
+ - name : build_image
148
+ on :
149
+ - success
63
150
64
151
push_master_alpine :
152
+ stage : push-master
65
153
type : push
66
154
candidate : ${{build_image_alpine}}
67
155
title : " Pushing alpine image with release tag"
68
156
when :
69
157
branch :
70
158
only : [ master ]
159
+ steps :
160
+ - name : build_image
161
+ on :
162
+ - success
71
163
tags :
72
164
- " ${{PACKAGE_VERSION}}${{ARM_TAG_POSTFIX}}"
73
165
- " latest${{ARM_TAG_POSTFIX}}"
@@ -83,12 +175,17 @@ steps:
83
175
title : " Pushing image to gcr.io registry with release tag"
84
176
85
177
push_master_debian :
178
+ stage : push-master
86
179
type : push
87
180
candidate : ${{build_image_debian}}
88
181
title : " Pushing debian image with release tag"
89
182
when :
90
183
branch :
91
184
only : [ master ]
185
+ steps :
186
+ - name : build_image
187
+ on :
188
+ - success
92
189
tags :
93
190
- " ${{PACKAGE_VERSION}}${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
94
191
- " latest${{DEBIAN_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
@@ -102,3 +199,55 @@ steps:
102
199
push_gcr_enterprise_prod_debian :
103
200
registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
104
201
title : " Pushing image to gcr.io registry with release tag"
202
+
203
+ push_master_alpine_rootless :
204
+ stage : push-master
205
+ type : push
206
+ candidate : ${{build_image_alpine_rootless}}
207
+ title : " Pushing rootless alpine image with release tag"
208
+ when :
209
+ branch :
210
+ only : [ master ]
211
+ steps :
212
+ - name : build_image
213
+ on :
214
+ - success
215
+ tags :
216
+ - " ${{PACKAGE_VERSION}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
217
+ - " latest${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
218
+ scale :
219
+ push_quay_prod_rootless :
220
+ registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
221
+ title : " Pushing alpine image to quay.io registry with release tag"
222
+ push_dockerhub_prod_rootless :
223
+ registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
224
+ title : " Pushing image to dockerhub registry with release tag"
225
+ push_gcr_enterprise_prod_rootless :
226
+ registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
227
+ title : " Pushing image to gcr.io registry with release tag"
228
+
229
+ push_master_debian_rootless :
230
+ stage : push-master
231
+ type : push
232
+ candidate : ${{build_image_debian_rootless}}
233
+ title : " Pushing rootless debian image with release tag"
234
+ when :
235
+ branch :
236
+ only : [ master ]
237
+ steps :
238
+ - name : build_image
239
+ on :
240
+ - success
241
+ tags :
242
+ - " ${{PACKAGE_VERSION}}${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
243
+ - " latest${{DEBIAN_TAG_POSTFIX}}${{ROOTLESS_TAG_POSTFIX}}${{ARM_TAG_POSTFIX}}"
244
+ scale :
245
+ push_quay_prod_debian_rootless :
246
+ registry : " ${{REGISTRY_INTEGRATION_QUAY}}"
247
+ title : " Pushing image to quay.io registry with release tag"
248
+ push_dockerhub_prod_debian_rootless :
249
+ registry : " ${{REGISTRY_INTEGRATION_DOCKERHUB}}"
250
+ title : " Pushing image to dockerhub registry with release tag"
251
+ push_gcr_enterprise_prod_debian_rootless :
252
+ registry : " ${{REGISTRY_INTEGRATION_ENTERPRISE}}"
253
+ title : " Pushing image to gcr.io registry with release tag"
0 commit comments