Fix deploy
All checks were successful
Build and Deploy / build-and-push (push) Successful in 10s
Build and Deploy / deploy (push) Successful in 12s

This commit is contained in:
2025-06-17 10:03:56 -03:00
parent 4e445107f2
commit f082b2dd01

View File

@@ -51,7 +51,13 @@ jobs:
steps: steps:
- name: Deploy to Production - name: Deploy to Production
run: | run: |
apk add --no-cache openssh-client echo "Deploying to production server..."
# Usamos el gestor de paquetes de Debian/Ubuntu
apt-get update
apt-get install -y openssh-client
# El resto del script ya es correcto
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.PROD_SERVER_SSH_KEY }}" > ~/.ssh/id_rsa echo "${{ secrets.PROD_SERVER_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa
@@ -69,5 +75,5 @@ jobs:
docker compose up -d docker compose up -d
docker image prune -af docker image prune -af
echo "--- DESPLIEGUE COMPLETADO ---" echo "--- ¡¡DESPLIEGUE COMPLETADO CON ÉXITO!! ---"
EOF EOF