Skip to content

Commit 1331880

Browse files
committed
feat(build): add buildx support
1 parent 084fec3 commit 1331880

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ VERSION ?= $(shell git describe --tags --exact-match 2>/dev/null || echo latest)
22
REGISTRY ?= docker.io/
33
IMAGE_PREFIX ?= drycc
44
IMAGE := ${REGISTRY}${IMAGE_PREFIX}/go-dev:${VERSION}
5+
PLATFORM ?= linux/amd64,linux/arm64
56

67
# scripts are checked *after* build, so use paths inside the container
78
SHELL_SCRIPTS = /usr/local/bin/test-cover.sh
@@ -18,6 +19,9 @@ info:
1819
build:
1920
docker build -t ${IMAGE} rootfs
2021

22+
buildx:
23+
docker buildx build --platform ${PLATFORM} -t ${IMAGE} rootfs --push
24+
2125
push: build
2226
docker push ${IMAGE}
2327

0 commit comments

Comments
 (0)