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 \
-i ~/.ssh/id_ed25519 \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << 'EOF'
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"
set -e
docker compose exec -T app \
php artisan migrate --force
echo "Projet"
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