Skip to content

Commit 463b89d

Browse files
committed
feat(build): add buildx support
1 parent 526ebca commit 463b89d

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
@@ -5,6 +5,7 @@
55
SHORT_NAME := redis
66
DRYCC_REGISTY ?= ${DEV_REGISTRY}
77
IMAGE_PREFIX ?= drycc
8+
PLATFORM ?= linux/amd64,linux/arm64
89

910
include versioning.mk
1011

@@ -28,6 +29,9 @@ docker-build:
2829
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
2930
docker tag ${IMAGE} ${MUTABLE_IMAGE}
3031

32+
docker-buildx:
33+
docker buildx build --platform ${PLATFORM} ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs --push
34+
3135
test: test-style
3236

3337
test-style:

0 commit comments

Comments
 (0)