File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed
Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,5 @@ docker_tag=${1?full docker_tag is required. Ex openzipkin/zipkin:test}
1010version=${2:- }
1111docker_args=$( $( dirname " $0 " ) /docker_args ${version} )
1212
13- # We don't need build kit, but Docker 20.10 no longer accepts --platform
14- # without it. It is simpler to always enable it vs require maintainers to use
15- # alternate OCI tools. See https://github.com/moby/moby/issues/41552
16- export DOCKER_BUILDKIT=1
17-
1813echo " Building image ${docker_tag} "
1914docker build --network=host --pull ${docker_args} --tag ${docker_tag} .
Original file line number Diff line number Diff line change 1010#
1111# Note: In CI, `configure_docker_push` must be called before invoking this.
1212#
13- # Avoid buildx on push for reasons including:
14- # * Caching is more complex as builder instances must be considered
15- # * Platform builds run in parallel, leading to port conflict failures (ex in cassandra)
16- # * 0.4.2 multi-platform builds have failed due to picking the wrong image for a FROM instruction
1713set -ue
1814
1915docker_image=${1?docker_image is required, notably without a tag. Ex openzipkin/ zipkin}
2016version=${2:- master}
2117
22- # We don't need build kit, but Docker 20.10 no longer accepts --platform
23- # without it. It is simpler to always enable it vs require maintainers to use
24- # alternate OCI tools. See https://github.com/moby/moby/issues/41552
25- export DOCKER_BUILDKIT=1
26-
2718case ${version} in
2819 master )
2920 is_release=false
9990 manifest_tags=" ${manifest_tags} ${manifest_tag} "
10091 done
10192
102- docker manifest create ${tag} ${manifest_tags}
103-
104- for manifest_tag in ${manifest_tags} ; do
105- docker_arch=$( echo ${manifest_tag} | sed ' s/.*-//g' )
106- docker manifest annotate ${tag} ${manifest_tag} --os linux --arch ${docker_arch}
107- done
108-
109- echo " Pushing manifest ${manifest_tag} ..."
110- docker manifest push -p ${tag}
93+ echo " Pushing manifest ${tag} ..."
94+ docker buildx imagetools create --tag ${tag} ${manifest_tags}
11195 done
11296fi
You can’t perform that action at this time.
0 commit comments