deploy(fix workflow container)
Some checks failed
Deploy Roxane to Preprod / deploy (push) Failing after 2s

This commit is contained in:
2025-11-26 16:25:15 +01:00
parent 9b0b99b12a
commit 6c99ed7544

View File

@@ -8,6 +8,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: node:16-bullseye
options: --entrypoint ""
steps:
- name: Configure SSH
@@ -33,27 +36,14 @@ jobs:
npm ci
npm run build
echo "🗄️ Running database migrations..."
echo "Running database migrations..."
php artisan migrate --force
echo "Optimizing Roxane..."
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan filament:optimize
echo "Optimizing Roxane..."
php artisan optimize
echo "Restarting queue workers..."
php artisan queue:restart || true
echo "Roxane deployed successfully to preprod!"
ENDSSH
- name: Deployment Status
if: always()
run: |
if [ ${{ job.status }} == 'success' ]; then
echo "Roxane is live on preprod!"
else
echo "Deployment failed - check logs"
exit 1
fi