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

Change ci file

parent ed9e0da5
Pipeline #7127 failed with stage
in 7 seconds
......@@ -25,12 +25,14 @@ 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
- echo "StrictHostKeyChecking no" >> ~/.ssh/config
- chmod 600 ~/.ssh/config
script:
- dokku-deploy
- 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
- |
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
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