File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,16 @@ parameters:
217
217
description : >
218
218
When true the authentication to docker registry will be done using the ecr-credential-helper. This avoids having
219
219
the password saved in plain text. Otherwise it will use the classic docker login command which is more compatible.
220
+
221
+ binfmt_version :
222
+ type : string
223
+ default : qemu-v7.0.0-28
224
+ description : |
225
+ The version to use for binfmt image.
226
+ The binfmt image is used to emulate multiple arquitectures when building multiplatform images.
227
+ Defaults to qemu-v7.0.0-28, change only if you know what you are doing.
228
+ See https://hub.docker.com/r/tonistiigi/binfmt for details.
229
+
220
230
steps :
221
231
- when :
222
232
condition : <<parameters.checkout>>
@@ -290,3 +300,4 @@ steps:
290
300
public_registry_alias : <<parameters.public_registry_alias>>
291
301
build_path : <<parameters.build_path>>
292
302
aws_domain : <<parameters.aws_domain>>
303
+ binfmt_version : <<parameters.binfmt_version>>
Original file line number Diff line number Diff line change @@ -106,6 +106,14 @@ parameters:
106
106
The AWS domain for your region, e.g in China, the AWS domain is amazonaws.com.cn
107
107
The default value is amazonaws.com
108
108
109
+ binfmt_version :
110
+ type : string
111
+ default : qemu-v7.0.0-28
112
+ description : |
113
+ The version to use for binfmt image.
114
+ The binfmt image is used to emulate multiple arquitectures when building multiplatform images.
115
+ Defaults to qemu-v7.0.0-28, change only if you know what you are doing.
116
+ See https://hub.docker.com/r/tonistiigi/binfmt for details.
109
117
steps :
110
118
- run :
111
119
name : Build Docker Image with buildx
@@ -126,5 +134,6 @@ steps:
126
134
AWS_ECR_STR_PUBLIC_REGISTRY_ALIAS : <<parameters.public_registry_alias>>
127
135
AWS_ECR_EVAL_BUILD_PATH : <<parameters.build_path>>
128
136
AWS_ECR_STR_AWS_DOMAIN : <<parameters.aws_domain>>
137
+ PARAM_BINFMT_VERSION : <<parameters.binfmt_version>>
129
138
command : <<include(scripts/docker_buildx.sh)>>
130
139
no_output_timeout : <<parameters.no_output_timeout>>
Original file line number Diff line number Diff line change @@ -223,6 +223,15 @@ parameters:
223
223
When true the authentication to docker registry will be done using the ecr-credential-helper. This avoids having
224
224
the password saved in plain text. Otherwise it will use the classic docker login command which is more compatible.
225
225
226
+ binfmt_version :
227
+ type : string
228
+ default : qemu-v7.0.0-28
229
+ description : |
230
+ The version to use for binfmt image.
231
+ The binfmt image is used to emulate multiple arquitectures when building multiplatform images.
232
+ Defaults to qemu-v7.0.0-28, change only if you know what you are doing.
233
+ See https://hub.docker.com/r/tonistiigi/binfmt for details.
234
+
226
235
steps :
227
236
- build_and_push_image :
228
237
account_id : <<parameters.account_id>>
@@ -259,3 +268,4 @@ steps:
259
268
repo_image_tag_mutability : <<parameters.repo_image_tag_mutability>>
260
269
use_credentials_helper : <<parameters.use_credentials_helper>>
261
270
aws_domain : <<parameters.aws_domain>>
271
+ binfmt_version : <<parameters.binfmt_version>>
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ if [ "${AWS_ECR_BOOL_SKIP_WHEN_TAGS_EXIST}" -eq "0" ] || [[ "${AWS_ECR_BOOL_SKIP
79
79
# We need to skip the creation of the builder context if it's already present
80
80
# otherwise the command will fail when called more than once in the same job.
81
81
docker context create builder
82
- docker run --privileged --rm tonistiigi/binfmt --install all
82
+ docker run --privileged --rm " tonistiigi/binfmt: $PARAM_BINFMT_VERSION " --install all
83
83
docker --context builder buildx create --name DLC_builder --use
84
84
fi
85
85
context_args=" --context builder"
You can’t perform that action at this time.
0 commit comments