feat(docker): add webhook to auto-redeploy on master commit, remove old docker-related files
Build and deploy / deploy (push) Successful in 35s

This commit is contained in:
2026-07-26 18:07:49 +02:00
parent e9a5eef051
commit eff6f48425
6 changed files with 120 additions and 10 deletions
+35
View File
@@ -0,0 +1,35 @@
name: Build and deploy
run-name: ${{ gitea.actor }} is deploying Le Tribunal
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- name: Build
run: |
npm run build
cp -r .next/static .next/standalone/.next/static
cp -r public .next/standalone/public
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
- name: Deploy
run: |
tar -czf - -C .next/standalone . | \
curl -sf \
-H "X-Webhook-Secret: ${{ secrets.WEBHOOK_SECRET }}" \
-H "Content-Type: application/octet-stream" \
--data-binary @- \
"${{ secrets.DEPLOY_WEBHOOK }}"