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:
parent
e96c66f46b
commit
c2c102cfa0
1 changed files with 11 additions and 11 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue