Verified Commit d3aa4879 authored by Davide Depau's avatar Davide Depau
Browse files

Fix SSH key permissions before rsync-ing

parent 1d7893e9
Pipeline #72 passed with stage
in 1 minute and 15 seconds
......@@ -19,6 +19,8 @@ deploy-prod:
- jekyll build -d public
- mkdir -p "$HOME/.ssh"
- echo "$SSH_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
- chmod 700 "$HOME/.ssh/known_hosts"
- chmod 700 "$SSH_DEPLOY_KEY"
- rsync -e "ssh -i $SSH_DEPLOY_KEY" --delete-after -rlptP public/ "$SSH_DEPLOY_USER@$SSH_DEPLOY_HOST:/"
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