diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c768a9d..dcef562 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,11 +40,7 @@ deploy: dependencies: - package before_script: - - mkdir ~/.ssh/ - - echo "$DEPLOY_KEY" > ~/.ssh/id_rsa - - chmod 600 ~/.ssh/id_rsa - - echo -e "$SSH_CONFIG" > ~/.ssh/config - - echo "$KNOWN_HOSTS" > ~/.ssh/known_hosts + - chmod 600 "$DEPLOY_KEY" - apk update && apk add rsync script: - - rsync -v -c -r --delete bin/ "elpa@ryuslash.org:" + - rsync -e "ssh -o \"UserKnownHostsFile $KNOWN_HOSTS\" -p 4511 -i $DEPLOY_KEY" -v -c -r --delete bin/ "elpa@ryuslash.org:"