diff --git a/appsettings.json b/appsettings.json index 8dbcc60..1cfdc43 100644 --- a/appsettings.json +++ b/appsettings.json @@ -81,6 +81,11 @@ jobs: steps: - name: Deploy to Staging Servers run: | + # Configura SSH + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + # Deploy no Servidor 1 ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF' # Para o container atual se existir @@ -132,6 +137,11 @@ jobs: steps: - name: Deploy to Production Servers run: | + # Configura SSH + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + # Deploy no Servidor 1 (com NGINX) ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF' # Para o container atual se existir