1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-16 20:49:06 +00:00

Deploy to dokku on CI

This commit is contained in:
Jake Howard 2021-06-26 20:59:23 +01:00
parent e96c66f46b
commit c2c102cfa0
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -1,3 +1,7 @@
stages:
- build
- deploy
static:
image: node:alpine
stage: build
@ -17,21 +21,17 @@ static:
expire_in: 30 mins
deploy:
image: alpine
image: dokku/ci-docker-image:latest
stage: deploy
dependencies:
- static
only:
- master
environment:
name: notes
url: https://notes.theorangeone.net
before_script:
- apk add --no-cache rclone
script:
- export RCLONE_CONFIG_PAGES_PASS=`rclone obscure $RCLONE_WEBDAV_PASSWORD`
- rclone sync public/ pages:notes.theorangeone.net/
variables:
RCLONE_CONFIG_PAGES_TYPE: webdav
RCLONE_CONFIG_PAGES_URL: https://pages.theorangeone.net
RCLONE_CONFIG_PAGES_USER: github
GIT_REMOTE_URL: ssh://dokku@d.theorangeone.net:7743/notes
GIT_PUSH_FLAGS: --force
script:
- dokku-deploy
after_script:
- dokku-unlock