feat: try fix cd.yml
ci.yml / 🧪 Tests Laravel (push) Has been cancelled
ci.yml / 🐳 Build & Push Image (push) Has been cancelled

This commit is contained in:
2026-07-10 15:50:41 +02:00
parent a8fc275623
commit 98830c1573
+9 -13
View File
@@ -30,22 +30,18 @@ jobs:
ssh \ ssh \
-i ~/.ssh/id_ed25519 \ -i ~/.ssh/id_ed25519 \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF' ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF'
set -e set -e
echo "Projet"
cd /data/docker/landing-api
echo "Pull nouvelle image"
docker compose pull
echo "Redémarrage"
docker compose up -d
echo "Migration Laravel"
docker compose exec -T app \ echo "Projet"
php artisan migrate --force cd /data/docker/landing-api
echo "🧹 Nettoyage" echo "Pull nouvelle image"
docker compose pull
docker image prune -f echo "Redémarrage"
docker compose up -d
echo "✅ Déploiement terminé" echo "Migration Laravel"
docker compose exec -T app php artisan migrate --force
EOF EOF