Skip to content

Commit 44517d4

Browse files
committed
feat(build): add buildx support
1 parent f1bfdc7 commit 44517d4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

default.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ DOCKER_HOST = $(shell echo $$DOCKER_HOST)
55
BUILD_TAG ?= git-$(shell git rev-parse --short HEAD)
66
DRYCC_REGISTRY ?= ${DEV_REGISTRY}
77
IMAGE_PREFIX ?= drycc
8+
PLATFORM ?= linux/amd64,linux/arm64
89

910
include ../includes.mk
1011
include ../versioning.mk
@@ -20,6 +21,9 @@ docker-build:
2021
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
2122
docker tag ${IMAGE} ${MUTABLE_IMAGE}
2223

24+
docker-buildx:
25+
docker buildx build --platform ${PLATFORM} -t ${IMAGE} rootfs --push
26+
2327
clean: check-docker
2428
docker rmi $(IMAGE)
2529

0 commit comments

Comments
 (0)