Files
oma-memorial/.gitea/workflows/deploy.yml
T
denshooter a34d406375 feat: complete memorial website features
- Add user contribution system (memories, timeline entries)
- Add AI content moderation with Ollama (bad word detection + qwen3:4b)
- Add family photo/video upload with admin approval
- Add candle lighting feature
- Add timeline and recipe sections
- Add QR code page and OG image
- Add site authentication (password-protected access)
- Add proxy middleware for auth routing
- Add admin dashboard for content management
- Remove email fields, make name optional (default: Anonym)
- Add CI/CD pipeline for Gitea Actions
- Add Docker deployment configuration
- Optimize Ollama RAM usage (42GB → 2.9GB)
- Fix API routes accessibility through proxy middleware

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 12:20:33 +01:00

46 lines
1.1 KiB
YAML

name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build Docker image
run: |
docker build -t oma-memorial:latest .
- name: Stop and remove old container
run: |
docker stop oma-memorial || true
docker rm oma-memorial || true
- name: Run container in proxy network
run: |
docker run -d \
--name oma-memorial \
--network proxy \
--restart unless-stopped \
-e NODE_ENV=production \
-v $(pwd)/data:/app/data \
oma-memorial:latest
- name: Health check
run: |
sleep 10
docker exec oma-memorial curl -f http://localhost:3000 || exit 1
- name: Show container logs
if: always()
run: docker logs oma-memorial --tail 50