From 6d1d049ee18217b2d81f439597161546798b7d29 Mon Sep 17 00:00:00 2001 From: Sudoer777 Date: Thu, 16 Sep 2021 17:03:03 +0000 Subject: [PATCH 1/2] Create GitLab CI configuration for Dokku testing server --- .gitlab-ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ab988bb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: dokku/ci-docker-image + +stages: + - deploy + +variables: + GIT_DEPTH: 0 + +deploy: + stage: deploy + only: + - testing + variables: + GIT_REMOTE_URL: ssh://dokku@ssh.dokku.sudoer.ch:1337/cvcs-score-tracker + GIT_SSH_COMMAND: 'ssh -o StrictHostKeyChecking=no' + script: + - dokku-deploy + after_script: + - dokku-unlock From 21b8900fae2c4c56711b5e950ac650889117839b Mon Sep 17 00:00:00 2001 From: Sudoer777 Date: Thu, 16 Sep 2021 17:14:17 +0000 Subject: [PATCH 2/2] Add comment to GitLab CI file --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab988bb..7249f59 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,6 @@ +# Automatically deploy testing branch to Dokku test server on commit +# https://cvcs-score-tracker.dokku.sudoer.ch + image: dokku/ci-docker-image stages: