aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-17 22:49:13 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-17 22:49:13 +0200
commit87be64e935325c7f1aec6dd1e1d8e121b602dd4e (patch)
tree20fc7324d1acbb4d03ddbd762849c7257c98d258
parentUse obfuscated port. (diff)
Ensure host is known.
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47663720..5c94e042 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -105,6 +105,10 @@ deploy:
image: alpine:latest
before_script:
- apk add --no-cache openssh-client
+ - mkdir .ssh
+ - chmod 700 .ssh
+ - echo "[jchri.st]:583 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHLqI3HkgC5L3ikpuibNKxbJJaBtstRDdFSYQ0LpxfQN" > .ssh/known_hosts
+ - chmod 400 .ssh/known_hosts
- echo "$DJANGO_DEPLOY_SSH_PRIVATE_KEY" > privkey
script:
- ssh -i privkey -p 583 [email protected]