From 122b0e6f5129f68c4d1ffe8b3d96920757f8bf1c Mon Sep 17 00:00:00 2001 From: Ricardo Carneiro Date: Tue, 5 Aug 2025 21:28:22 -0300 Subject: [PATCH] fix: deploy sem fingerprint --- appsettings.json | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/appsettings.json b/appsettings.json index f56a990..8dbcc60 100644 --- a/appsettings.json +++ b/appsettings.json @@ -81,13 +81,8 @@ jobs: steps: - name: Deploy to Staging Servers run: | - # Configura SSH known_hosts - mkdir -p ~/.ssh - ssh-keyscan -H 141.148.162.114 >> ~/.ssh/known_hosts - ssh-keyscan -H 129.146.116.218 >> ~/.ssh/known_hosts - # Deploy no Servidor 1 - ssh ubuntu@141.148.162.114 << 'EOF' + ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF' # Para o container atual se existir docker stop qrrapido-staging || true docker rm qrrapido-staging || true @@ -108,7 +103,7 @@ jobs: EOF # Deploy no Servidor 2 - ssh ubuntu@129.146.116.218 << 'EOF' + ssh -o StrictHostKeyChecking=no ubuntu@129.146.116.218 << 'EOF' # Para o container atual se existir docker stop qrrapido-staging || true docker rm qrrapido-staging || true @@ -137,13 +132,8 @@ jobs: steps: - name: Deploy to Production Servers run: | - # Configura SSH known_hosts - mkdir -p ~/.ssh - ssh-keyscan -H 141.148.162.114 >> ~/.ssh/known_hosts - ssh-keyscan -H 129.146.116.218 >> ~/.ssh/known_hosts - # Deploy no Servidor 1 (com NGINX) - ssh ubuntu@141.148.162.114 << 'EOF' + ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 << 'EOF' # Para o container atual se existir docker stop qrrapido-prod || true docker rm qrrapido-prod || true @@ -168,7 +158,7 @@ jobs: EOF # Deploy no Servidor 2 - ssh ubuntu@129.146.116.218 << 'EOF' + ssh -o StrictHostKeyChecking=no ubuntu@129.146.116.218 << 'EOF' # Para o container atual se existir docker stop qrrapido-prod || true docker rm qrrapido-prod || true @@ -196,7 +186,7 @@ jobs: # Verifica se os serviços estão respondendo echo "Verificando Servidor 1..." - ssh ubuntu@141.148.162.114 'curl -f http://localhost:5001/health || echo "Servidor 1 pode não estar respondendo"' + ssh -o StrictHostKeyChecking=no ubuntu@141.148.162.114 'curl -f http://localhost:5001/health || echo "Servidor 1 pode não estar respondendo"' echo "Verificando Servidor 2..." - ssh ubuntu@129.146.116.218 'curl -f http://localhost:5001/health || echo "Servidor 2 pode não estar respondendo"' \ No newline at end of file + ssh -o StrictHostKeyChecking=no ubuntu@129.146.116.218 'curl -f http://localhost:5001/health || echo "Servidor 2 pode não estar respondendo"' \ No newline at end of file