install rclone from github

This commit is contained in:
Marvin Steadfast 2020-03-05 13:36:33 +01:00
parent 54fe7783a8
commit b08e806435
2 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@ steps:
RCLONE_CONF: RCLONE_CONF:
from_secret: rclone.conf from_secret: rclone.conf
commands: commands:
- apk add --no-cache make rclone - apk add --no-cache make
- mkdir -p ~/.config/rclone - mkdir -p ~/.config/rclone
- echo $RCLONE_CONF > ~/.config/rclone/rclone.conf - echo $RCLONE_CONF > ~/.config/rclone/rclone.conf
- cat ~/.config/rclone/rclone.conf - cat ~/.config/rclone/rclone.conf

View File

@ -1,4 +1,5 @@
HUGO_VERSION=0.65.3 HUGO_VERSION=0.65.3
RCLONE_VERSION=1.51.0
OUTPUT_DIR=./public OUTPUT_DIR=./public
clean: clean:
@ -10,8 +11,9 @@ build:
cp public/index.xml public/feed/index.html cp public/index.xml public/feed/index.html
install_deps: install_deps:
apk add --no-cache lftp git apk add --no-cache git
GO111MODULE=on go get -v -u github.com/gohugoio/hugo@v$(HUGO_VERSION) GO111MODULE=on go get -v -u github.com/gohugoio/hugo@v$(HUGO_VERSION)
GO111MODULE=on go get -v -u github.com/rclone/rclone@v$(RCLONE_VERSION)
ftp_upload: ftp_upload:
rclone sync $(OUTPUT_DIR) blog:// rclone sync $(OUTPUT_DIR) blog://