aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-17 23:06:51 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-17 23:06:51 +0200
commit92268292ffdb5e9ac5b1b8b19c6f73f9bd5800dc (patch)
tree2ec217ca26584be613f0d44f629b15171512c74d
parentUse proper host key. (diff)
Fix up host key verification.
-rw-r--r--.gitlab-ci.yml6
1 files changed, 1 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6fad330..0c78d10e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -105,13 +105,9 @@ deploy:
image: alpine:latest
before_script:
- apk add --no-cache openssh-client
- - mkdir .ssh
- - chmod 700 .ssh
- - echo "[jchri.st]:583 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDfASki6pPLNwInyoRmUc4qH9JZd9SJeSofNOLiOxlJ3JUuLrLil7L4JPgC+RY5Rneb3Z7+S3cc7BmBDG5s2+lU" > .ssh/known_hosts
- - chmod 400 .ssh/known_hosts
- echo "$DJANGO_DEPLOY_SSH_PRIVATE_KEY" > privkey
script:
- - ssh -i privkey -p 583 [email protected]
+ - ssh -i privkey -p 583 -o "StrictHostKeyChecking=no" [email protected]
environment:
name: Django staging
url: https://pysite.jchri.st