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:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:16-bullseye
|
||||||
|
options: --entrypoint ""
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Configure SSH
|
- name: Configure SSH
|
||||||
@@ -33,27 +36,14 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
echo "🗄️ Running database migrations..."
|
echo "Running database migrations..."
|
||||||
php artisan migrate --force
|
php artisan migrate --force
|
||||||
|
|
||||||
echo "⚡ Optimizing Roxane..."
|
echo "Optimizing Roxane..."
|
||||||
php artisan config:cache
|
php artisan optimize
|
||||||
php artisan route:cache
|
|
||||||
php artisan view:cache
|
|
||||||
php artisan filament:optimize
|
|
||||||
|
|
||||||
echo "Restarting queue workers..."
|
echo "Restarting queue workers..."
|
||||||
php artisan queue:restart || true
|
php artisan queue:restart || true
|
||||||
|
|
||||||
echo "Roxane deployed successfully to preprod!"
|
echo "Roxane deployed successfully to preprod!"
|
||||||
ENDSSH
|
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