Commit 32a92950 authored by Rob Connolly's avatar Rob Connolly

Fix private key permissions.

parent a1126033
......@@ -131,6 +131,7 @@ deploy:
before_script:
- apk --no-cache add curl openssh-client
- echo "$DEPLOYMENT_SSH_KEY" > id_rsa
- chmod 600 id_rsa
script:
- ssh -i id_rsa -o "StrictHostKeyChecking=no" $DEPLOYMENT_SSH_LOGIN "cd /mnt/docker-data/homeassistant && git pull && git checkout $CI_COMMIT_SHA"
- "curl -X POST -H \"Authorization: Bearer $DEPLOYMENT_HASS_TOKEN\" -H \"Content-Type: application/json\" $DEPLOYMENT_HASS_URL/api/services/homeassistant/restart"
......
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