Skip to content

Commit aae7f52

Browse files
committed
feat(build): add buildx support
1 parent a2c7b2e commit aae7f52

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
@@ -3,6 +3,7 @@ DRYCC_REGISTRY ?= $(DEV_REGISTRY)
33
IMAGE_PREFIX ?= drycc
44
COMPONENT ?= controller
55
SHORT_NAME ?= $(COMPONENT)
6+
PLATFORM ?= linux/amd64,linux/arm64
67

78
include versioning.mk
89

@@ -30,6 +31,9 @@ docker-build: check-docker
3031
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
3132
docker tag ${IMAGE} ${MUTABLE_IMAGE}
3233

34+
docker-buildx:
35+
docker buildx build --platform ${PLATFORM} -t ${IMAGE} rootfs --push
36+
3337
docker-build-test: check-docker
3438
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE}.test -f rootfs/Dockerfile.test rootfs
3539

0 commit comments

Comments
 (0)