File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
cluster/images/conformance Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ CLUSTER_DIR?=$(shell pwd)/../../../cluster/
34
34
BASEIMAGE =debian:stretch-slim
35
35
TEMP_DIR: =$(shell mktemp -d -t conformanceXXXXXX)
36
36
37
- # output format for docker buildx build [push, load]
38
- OUTPUT =--load
39
-
40
37
all : build
41
38
42
39
build :
@@ -59,14 +56,15 @@ endif
59
56
60
57
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
61
58
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}
67
60
rm -rf "${TEMP_DIR}"
68
61
69
- push : OUTPUT=--push
70
62
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
71
69
72
70
.PHONY : build push all
You can’t perform that action at this time.
0 commit comments