We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 084fec3 commit 1331880Copy full SHA for 1331880
1 file changed
Makefile
@@ -2,6 +2,7 @@ VERSION ?= $(shell git describe --tags --exact-match 2>/dev/null || echo latest)
2
REGISTRY ?= docker.io/
3
IMAGE_PREFIX ?= drycc
4
IMAGE := ${REGISTRY}${IMAGE_PREFIX}/go-dev:${VERSION}
5
+PLATFORM ?= linux/amd64,linux/arm64
6
7
# scripts are checked *after* build, so use paths inside the container
8
SHELL_SCRIPTS = /usr/local/bin/test-cover.sh
@@ -18,6 +19,9 @@ info:
18
19
build:
20
docker build -t ${IMAGE} rootfs
21
22
+buildx:
23
+ docker buildx build --platform ${PLATFORM} -t ${IMAGE} rootfs --push
24
+
25
push: build
26
docker push ${IMAGE}
27
0 commit comments