Commit ed9e0da5 authored by Alexandr Dzehil's avatar Alexandr Dzehil 😎

Change ci file

parent 03ad898c
Pipeline #7126 failed with stage
in 7 seconds
......@@ -25,10 +25,12 @@ deploy:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "Проверка доступности сервера..."
- nc -zv ${APP_URL} 22 || exit 1
- ssh-keyscan -H ${APP_URL} >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
script:
- dokku-deploy
- ssh dokku@${APP_URL} ps:restart ${APP_NAME}
- ssh dokku@${APP_URL} ps:restart ${APP_NAME} || true
after_script:
- ssh dokku@${APP_URL} apps:unlock ${APP_NAME} || true
\ No newline at end of file
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