diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ee5110a --- /dev/null +++ b/Makefile @@ -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