Commit 329ba8bc authored by Rob Connolly's avatar Rob Connolly

Add restart command.

parent 9d55b377
......@@ -133,6 +133,6 @@ deploy:
- cat $DEPLOYMENT_SSH_KEY > 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
after_script:
- rm id_rsa
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