Skip to content

Commit 18a0882

Browse files
committed
feat(build): add buildx support
1 parent 5477565 commit 18a0882

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 := postgres
66
DRYCC_REGISTRY ?= ${DEV_REGISTRY}
77
IMAGE_PREFIX ?= drycc
8+
PLATFORM ?= linux/amd64,linux/arm64
89

910
include versioning.mk
1011

@@ -25,6 +26,9 @@ docker-build:
2526
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} .
2627
docker tag ${IMAGE} ${MUTABLE_IMAGE}
2728

29+
docker-buildx:
30+
docker buildx build --platform ${PLATFORM} -t ${IMAGE} . --push
31+
2832
test: test-style test-functional
2933

3034
test-style:

0 commit comments

Comments
 (0)