From 6c99ed7544960a888d2934a7259e4ca5932bd2c8 Mon Sep 17 00:00:00 2001 From: Nebulae Date: Wed, 26 Nov 2025 16:25:15 +0100 Subject: [PATCH] deploy(fix workflow container) --- .gitea/workflows/deploy-preprod.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/deploy-preprod.yml b/.gitea/workflows/deploy-preprod.yml index d506143..fdf5b50 100644 --- a/.gitea/workflows/deploy-preprod.yml +++ b/.gitea/workflows/deploy-preprod.yml @@ -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