Commit 2d4e86bc by Chavee Issariyapat

Update Makefile

parent e04df0e5
# a helper shell script
MAKE_VERSION=1.2.7
MAKE_VERSION=1.2.8
define MAKEFUNCTIONCODE
function hasChanges() {
......@@ -186,6 +186,8 @@ init:
build: init pre-build docker-build post-build
buildx: init pre-build docker-buildx post-build
cleanbuild: init pre-build docker-cleanbuild post-build
pre-build:
......@@ -199,6 +201,9 @@ post-push:
post-init:
@rm .make-function
docker-buildx:
docker buildx build --push --platform linux/arm64/v8,linux/amd64 $(BUILDARG) --tag $(IMAGE):$(VERSIONHASH) $(PROJECTPATH)
docker-build:
docker build --platform=linux/amd64 $(BUILDARG) -t $(IMAGE):$(VERSIONHASH) $(PROJECTPATH)
@DOCKER_MAJOR=$(shell docker -v | sed -e 's/.*version //' -e 's/,.*//' | cut -d\. -f1) ; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment