feat: multiarch build
This commit is contained in:
16
Makefile
16
Makefile
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: build run test clean docker-build docker-run docker-push
|
.PHONY: build run test clean docker-build docker-run docker-push docker-build-multiarch docker-push-multiarch
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
build:
|
build:
|
||||||
@@ -52,3 +52,17 @@ docker-run:
|
|||||||
# Push Docker image
|
# Push Docker image
|
||||||
docker-push:
|
docker-push:
|
||||||
docker push $(FULL_IMAGE_NAME)
|
docker push $(FULL_IMAGE_NAME)
|
||||||
|
|
||||||
|
# Build multiarch Docker image
|
||||||
|
docker-build-multiarch:
|
||||||
|
docker buildx build --platform linux/amd64,linux/arm64 \
|
||||||
|
-t $(FULL_IMAGE_NAME) \
|
||||||
|
--push \
|
||||||
|
.
|
||||||
|
|
||||||
|
# Push multiarch Docker image (if not pushed during build)
|
||||||
|
docker-push-multiarch:
|
||||||
|
docker buildx build --platform linux/amd64,linux/arm64 \
|
||||||
|
-t $(FULL_IMAGE_NAME) \
|
||||||
|
--push \
|
||||||
|
.
|
||||||
|
|||||||
Reference in New Issue
Block a user