fix: ssh secret key
Some checks failed
Deploy QR Rapido / test (push) Successful in 30s
Deploy QR Rapido / build-and-push (push) Successful in 28s
Deploy QR Rapido / deploy-staging (push) Has been skipped
Deploy QR Rapido / deploy-production (push) Failing after 6s

This commit is contained in:
Ricardo Carneiro 2025-08-05 21:36:42 -03:00
parent 122b0e6f51
commit d608a9645c

View File

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