You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
625 B
32 lines
625 B
VERSION := $(shell git rev-parse --abbrev-ref HEAD)
|
|
.PHONY: clean docker-build-dev serve write
|
|
|
|
write: serve
|
|
|
|
build: public
|
|
docker build -t vdhsn/blog:${VERSION} -f Dockerfile .
|
|
|
|
publish: build
|
|
docker push vdhsn/blog:${VERSION}
|
|
|
|
test-publish: build
|
|
docker run -it -p 8080:80 vdhsn/blog:${VERSION}
|
|
|
|
new-post:
|
|
@./hugo new posts/$${TITLE:new_post}.md
|
|
|
|
docker-build-dev:
|
|
@docker build --build-arg='VERSION=0.59.1' -t hugo -f Dockerfile.dev .
|
|
|
|
serve:
|
|
./hugo server -D --log -w --bind 0.0.0.0
|
|
|
|
clean:
|
|
@rm -rf ./public ./resources
|
|
|
|
hugo:
|
|
@go get -u --tags extended -v github.com/gohugoio/hugo
|
|
|
|
public:
|
|
./hugo --minify --gc
|