Add SSH host key to environment before rsync-ing

parent 31a35863
Pipeline #70 failed with stage
in 1 minute and 12 seconds
......@@ -17,6 +17,8 @@ deploy-prod:
- apk add rsync
- bundle install
- jekyll build -d public
- mkdir -p "$HOME/.ssh"
- echo "$SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
- rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -rlptP public/ "$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/www.poul.org/"
cache:
key: gems
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment