Added Makefile for multi-arch builds

master
Jef Roosens 2021-07-20 18:42:50 +02:00
parent 4fdf8c9207
commit 5e0f5d0c52
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 24 additions and 0 deletions

24
Makefile 100644
View File

@ -0,0 +1,24 @@
DOCKER_TAG := chewingbever/blog:latest
all: build
.PHONY: build
build:
@ hugo
.PHONY: build
run:
@ hugo -D server
.PHONY: run
image:
@ docker build -t ${DOCKER_TAG} .
.PHONY: image
publish:
@ docker buildx build . \
--platform linux/amd64,linux/arm64 \
-t ${DOCKER_TAG} \
--pull \
--push
.PHONY: publish