25 lines
334 B
Makefile
25 lines
334 B
Makefile
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,linux/arm/v7 \
|
|
-t ${DOCKER_TAG} \
|
|
--pull \
|
|
--push
|
|
.PHONY: publish
|