-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
270 lines (270 loc) · 16 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
# 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 gitlab runner 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-amd64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA} --build-arg
BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:x86_64 -t
$DOCKER_REGISTRY_DOCKERHUB_REPO:x86_64 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:x86_64
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:amd64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:amd64 --platform linux/amd64 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:x86_64
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:amd64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:x86_64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_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
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:amd64
arm32v7 gitlab runner 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-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 gitlab runner 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-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 gitlab runner 17.3.0 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-amd64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA} --build-arg
BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-x86_64
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-x86_64 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-x86_64
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-amd64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-amd64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-amd64 --platform linux/amd64 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-x86_64
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-amd64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-x86_64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-amd64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-x86_64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-amd64
arm32v7 gitlab runner 17.3.0 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-armhf/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA} --build-arg
BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm32v7
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm32v7 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-arm32v7
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-armhf -t $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-armhf
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-armhf --platform linux/arm/v7 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm32v7
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-armhf
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm32v7
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-armhf
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-arm32v7
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-armhf
arm64v8 gitlab runner 17.3.0 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-aarch64/ && docker build --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA}
--build-arg BUILD_DATE=${COMMIT_TIME} -t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm64v8
-t $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm64v8 -t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-arm64v8
-t $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-aarch64 -t $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-aarch64
-t $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-aarch64 --platform linux/arm64/v8 .
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm64v8
- docker push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-aarch64
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm64v8
- echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
&& docker push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-aarch64
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-arm64v8
- echo "$QUAY_PASSWORD" | docker login -u "$QUAY_USERNAME" quay.io --password-stdin
&& docker push $DOCKER_REGISTRY_QUAY/$DOCKER_REGISTRY_QUAY_REPO:17.3.0-aarch64
gitlab manifest creation latest:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- manifest
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 manifest creation latest:
image: yobasystems/alpine-docker:dind
stage: manifest
tags:
- manifest
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 manifest 17.3.0 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:17.3.0-amd64
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm32v7
- docker pull $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm64v8
- docker manifest create $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-amd64
$DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm32v7 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm64v8
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0 $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0-arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY/$DOCKER_REGISTRY_REPO:17.3.0
dockerhub manifest 17.3.0 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:17.3.0-amd64
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm32v7
- docker pull $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm64v8
- docker manifest create $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0 $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-amd64
$DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm32v7 $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm64v8
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0 $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-amd64
--os linux --arch amd64
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0 $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm32v7
--os linux --arch arm --variant 7
- docker manifest annotate $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0 $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0-arm64v8
--os linux --arch arm64 --variant 8
- docker manifest push $DOCKER_REGISTRY_DOCKERHUB_REPO:17.3.0
sast:
stage: test