From c2c102cfa034fb79c999a7a16b631f69e0682fd4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 26 Jun 2021 20:59:23 +0100 Subject: [PATCH] Deploy to dokku on CI --- .gitlab-ci.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba5e07f..82118f0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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