deploy(fix workflow container)
Some checks failed
Deploy Roxane to Preprod / deploy (push) Failing after 2s
Some checks failed
Deploy Roxane to Preprod / deploy (push) Failing after 2s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user