aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0faeea57..64e8cd35 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ stages:
- lint
- test
- publish
+ - deploy
image: python:3.7-alpine
.test-template: &test-template
@@ -98,3 +99,17 @@ push-django:
- django
tags:
- docker
+
+deploy:
+ stage: deploy
+ image: alpine:latest
+ before_script:
+ - apk add --no-cache openssh-client
+ - echo "$DJANGO_DEPLOY_SSH_PRIVATE_KEY" > privkey
+ script:
+ - ssh -i privkey [email protected]
+ environments:
+ name: Django staging
+ url: https://pysite.jchri.st
+ tags:
+ - docker