Commit bbd0de54 by Chavee Issariyapat

Update Makefile

parent 4209c181
# a helper shell script
MAKE_VERSION=1.2.9
MAKE_VERSION=1.3.0
define MAKEFUNCTIONCODE
function hasChanges() {
......@@ -190,6 +190,8 @@ buildx: init pre-build docker-buildx post-build
cleanbuild: init pre-build docker-cleanbuild post-build
cleanbuildx: init pre-build docker-cleanbuildx post-build
pre-build:
post-build:
......@@ -204,6 +206,10 @@ post-init:
docker-buildx:
docker buildx build --push --platform linux/arm64/v8,linux/amd64 $(BUILDARG) --tag $(IMAGE):$(VERSIONHASH) --tag $(IMAGE):$(VERSION) --tag $(IMAGE):latest $(PROJECTPATH)
docker-cleanbuildx:
docker buildx build --push --platform linux/arm64/v8,linux/amd64 $(BUILDARG) --no-cache --tag $(IMAGE):$(VERSIONHASH) --tag $(IMAGE):$(VERSION) --tag $(IMAGE):latest $(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