-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
313 lines (313 loc) · 18.5 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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
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
# You can override the included template(s) by including variable overrides
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
# Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
stages:
- build
- test
- manifest
- deploy
include:
- remote: https://gitlab.com/yobasystems/gitlab-ci-templates/raw/master/container_scanning_all_arch.yml
- template: Security/Secret-Detection.gitlab-ci.yml
- template: Security/SAST.gitlab-ci.yml
amd64 redis build:
image: yobasystems/alpine-docker:dind
stage: build
tags:
- amd64
variables:
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_APPLICATION_TAG)
- echo "$COMMIT_TIME" && echo "$CI_COMMIT_SHORT_SHA"
- apk add --update git
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- cd alpine-redis-amd64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:x86_64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:amd64
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:x86_64 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:amd64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:x86_64 -t ${CI_APPLICATION_REPOSITORY}:${CI_APPLICATION_TAG} --platform linux/amd64 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:x86_64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:amd64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:x86_64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:amd64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:x86_64
- docker push ${CI_APPLICATION_REPOSITORY}:${CI_APPLICATION_TAG}
arm32v7 redis build:
image: yobasystems/alpine-docker:dind
stage: build
tags:
- armhf
variables:
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_APPLICATION_TAG)
- echo "$COMMIT_TIME" && echo "$CI_COMMIT_SHORT_SHA"
- apk add --update git
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- cd alpine-redis-armhf/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm32v7
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:arm32v7 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:arm32v7
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:armhf -t $DOCKER_REGISTRY_DOCKERHUB_REPO:armhf
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:armhf --platform linux/arm/v7 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm32v7
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:armhf
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:arm32v7
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:armhf
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:arm32v7
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:armhf
arm64v8 redis build:
image: yobasystems/alpine-docker:dind
stage: build
tags:
- aarch64
variables:
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_APPLICATION_TAG)
- echo "$COMMIT_TIME" && echo "$CI_COMMIT_SHORT_SHA"
- apk add --update git
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- cd alpine-redis-aarch64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm64v8
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:arm64v8 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:arm64v8
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:aarch64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:aarch64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:aarch64 --platform linux/arm64/v8 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm64v8
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:aarch64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:arm64v8
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:aarch64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:arm64v8
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:aarch64
amd64 redis version build:
image: yobasystems/alpine-docker:dind
stage: build
tags:
- amd64
variables:
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_APPLICATION_TAG)
- echo "$COMMIT_TIME" && echo "$CI_COMMIT_SHORT_SHA"
- apk add --update git
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- cd alpine-redis-amd64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-x86_64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-x86_64 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-amd64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-x86_64 --platform linux/amd64 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-x86_64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-x86_64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-amd64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-x86_64
arm32v7 redis version build:
image: yobasystems/alpine-docker:dind
stage: build
tags:
- armhf
variables:
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_APPLICATION_TAG)
- echo "$COMMIT_TIME" && echo "$CI_COMMIT_SHORT_SHA"
- apk add --update git
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- cd alpine-redis-armhf/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-arm32v7
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-armhf -t $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-armhf
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-armhf --platform linux/arm/v7 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-armhf
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-armhf
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-arm32v7
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-armhf
arm64v8 redis version build:
image: yobasystems/alpine-docker:dind
stage: build
tags:
- aarch64
variables:
CI_APPLICATION_REPOSITORY: "$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG"
CI_APPLICATION_TAG: "$CI_COMMIT_SHA"
script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_APPLICATION_TAG)
- echo "$COMMIT_TIME" && echo "$CI_COMMIT_SHORT_SHA"
- apk add --update git
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- cd alpine-redis-aarch64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-arm64v8
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-aarch64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-aarch64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-aarch64 --platform linux/arm64/v8 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-aarch64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-aarch64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-arm64v8
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:7.2.5-aarch64
gitlab latest manifest creation:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- amd64
script:
- mkdir /root/.docker
- 'echo -e "{\n \"experimental\": \"enabled\"\n}\n" >> ~/.docker/config.json'
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm32v7
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm64v8
- docker manifest create $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:latest $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64
$DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm32v7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm64v8
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:latest $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:latest $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:latest $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:latest
dockerhub latest manifest creation:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- amd64
script:
- mkdir /root/.docker
- 'echo -e "{\n \"experimental\": \"enabled\"\n}\n" >> ~/.docker/config.json'
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:amd64
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:arm32v7
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:arm64v8
- docker manifest create $DOCKER_REGISTRY_DOCKERHUB_REPO:latest $DOCKER_REGISTRY_DOCKERHUB_REPO:amd64
$DOCKER_REGISTRY_DOCKERHUB_REPO:arm32v7 $DOCKER_REGISTRY_DOCKERHUB_REPO:arm64v8
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:latest $DOCKER_REGISTRY_DOCKERHUB_REPO:amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:latest $DOCKER_REGISTRY_DOCKERHUB_REPO:arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:latest $DOCKER_REGISTRY_DOCKERHUB_REPO:arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY_DOCKERHUB_REPO:latest
gitlab version 7.2.5 manifest creation:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- amd64
script:
- mkdir /root/.docker
- 'echo -e "{\n \"experimental\": \"enabled\"\n}\n" >> ~/.docker/config.json'
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
- docker manifest create $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
$DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5
dockerhub version 7.2.5 manifest creation:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- amd64
script:
- mkdir /root/.docker
- 'echo -e "{\n \"experimental\": \"enabled\"\n}\n" >> ~/.docker/config.json'
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
- docker manifest create $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
$DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5
gitlab major version 7 manifest creation:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- amd64
script:
- mkdir /root/.docker
- 'echo -e "{\n \"experimental\": \"enabled\"\n}\n" >> ~/.docker/config.json'
- echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token "$DOCKER_REGISTRY" --password-stdin
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
- docker manifest create $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
$DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7.2.5-arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:7
dockerhub major version 7 manifest creation:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- amd64
script:
- mkdir /root/.docker
- 'echo -e "{\n \"experimental\": \"enabled\"\n}\n" >> ~/.docker/config.json'
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
- docker manifest create $DOCKER_REGISTRY_DOCKERHUB_REPO:7 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
$DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:7 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:7 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:7 $DOCKER_REGISTRY_DOCKERHUB_REPO:7.2.5-arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY_DOCKERHUB_REPO:7
sast:
stage: test