1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-12-22 23:45:58 +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: static:
image: node:alpine image: node:alpine
stage: build stage: build
@ -17,21 +21,17 @@ static:
expire_in: 30 mins expire_in: 30 mins
deploy: deploy:
image: alpine image: dokku/ci-docker-image:latest
stage: deploy stage: deploy
dependencies:
- static
only: only:
- master - master
environment: environment:
name: notes name: notes
url: https://notes.theorangeone.net 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: variables:
RCLONE_CONFIG_PAGES_TYPE: webdav GIT_REMOTE_URL: ssh://dokku@d.theorangeone.net:7743/notes
RCLONE_CONFIG_PAGES_URL: https://pages.theorangeone.net GIT_PUSH_FLAGS: --force
RCLONE_CONFIG_PAGES_USER: github script:
- dokku-deploy
after_script:
- dokku-unlock