Skip to content

Commit 305d658

Browse files
authored
Revert "fix cross build conformance image error"
1 parent 06e3aec commit 305d658

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

cluster/images/conformance/Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ CLUSTER_DIR?=$(shell pwd)/../../../cluster/
3434
BASEIMAGE=debian:stretch-slim
3535
TEMP_DIR:=$(shell mktemp -d -t conformanceXXXXXX)
3636

37-
#output format for docker buildx build [push, load]
38-
OUTPUT=--load
39-
4037
all: build
4138

4239
build:
@@ -59,14 +56,15 @@ endif
5956

6057
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
6158

62-
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --pull --platform linux/$(ARCH) $(OUTPUT) -t ${REGISTRY}/conformance-${ARCH}:${VERSION} ${TEMP_DIR}
63-
ifeq ($(ARCH),amd64)
64-
docker rmi ${REGISTRY}/conformance:${VERSION} 2>/dev/null || true
65-
DOCKER_CLI_EXPERIMENTAL=enabled docker buildx build --pull --platform linux/$(ARCH) $(OUTPUT) -t ${REGISTRY}/conformance:${VERSION} ${TEMP_DIR}
66-
endif
59+
docker build --pull -t ${REGISTRY}/conformance-${ARCH}:${VERSION} ${TEMP_DIR}
6760
rm -rf "${TEMP_DIR}"
6861

69-
push: OUTPUT=--push
7062
push: build
63+
docker push ${REGISTRY}/conformance-${ARCH}:${VERSION}
64+
ifeq ($(ARCH),amd64)
65+
docker rmi ${REGISTRY}/conformance:${VERSION} 2>/dev/null || true
66+
docker tag ${REGISTRY}/conformance-${ARCH}:${VERSION} ${REGISTRY}/conformance:${VERSION}
67+
docker push ${REGISTRY}/conformance:${VERSION}
68+
endif
7169

7270
.PHONY: build push all

0 commit comments

Comments
 (0)