2020-02-27 15:11:23 +01:00
|
|
|
HUGO_VERSION=0.65.3
|
2020-03-05 13:36:33 +01:00
|
|
|
RCLONE_VERSION=1.51.0
|
2020-03-05 13:30:50 +01:00
|
|
|
OUTPUT_DIR=./public
|
2020-02-27 15:11:23 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf public
|
|
|
|
|
|
|
|
build:
|
|
|
|
hugo
|
2020-02-29 16:59:36 +01:00
|
|
|
mkdir public/feed
|
|
|
|
cp public/index.xml public/feed/index.html
|
2020-02-27 15:11:23 +01:00
|
|
|
|
|
|
|
install_deps:
|
2020-03-05 13:57:53 +01:00
|
|
|
apk add --no-cache git gcc musl-dev
|
|
|
|
GO111MODULE=on go get -v github.com/gohugoio/hugo@v$(HUGO_VERSION)
|
|
|
|
GO111MODULE=on go get -v github.com/rclone/rclone@v$(RCLONE_VERSION)
|
2020-02-27 15:11:23 +01:00
|
|
|
|
|
|
|
ftp_upload:
|
2020-03-05 13:30:50 +01:00
|
|
|
rclone sync $(OUTPUT_DIR) blog://
|
2020-02-27 15:11:23 +01:00
|
|
|
|
2020-03-05 13:30:50 +01:00
|
|
|
.PHONY: clean build install_deps ftp_upload
|