Update .gitlab-ci.yml file
This commit is contained in:
+1
-1
@@ -65,7 +65,7 @@ deploy_to_production:
|
||||
- cp $SSH_PRIVATE_KEY ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
# Добавляем хост в known_hosts
|
||||
- ssh-keyscan -H $APP_HOST >> ~/.ssh/known_hosts 2>/dev/null
|
||||
- ssh-keyscan -H $APP_HOST_IP >> ~/.ssh/known_hosts 2>/dev/null
|
||||
script:
|
||||
- echo "Deploying to production server..."
|
||||
# Подключаемся по SSH и выполняем команды уже на сервере app01
|
||||
|
||||
Reference in New Issue
Block a user