Phase 0 — Foundation: backend, data model, local auth, frontend, deploy + CI #1

Merged
justin merged 17 commits from phase-0-foundation into main 2026-06-06 11:32:31 -04:00
3 changed files with 36 additions and 5 deletions
Showing only changes of commit fccc81a6cc - Show all commits
+23
View File
@@ -38,3 +38,26 @@ jobs:
tags: |
${{ env.IMAGE_BASE }}/backend:latest
${{ env.IMAGE_BASE }}/backend:${{ github.sha }}
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Log in to the Gitea registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push frontend image
uses: docker/build-push-action@v6
with:
context: ./frontend
push: true
tags: |
${{ env.IMAGE_BASE }}/frontend:latest
${{ env.IMAGE_BASE }}/frontend:${{ github.sha }}
+2 -5
View File
@@ -15,11 +15,8 @@
reverse_proxy backend:8000
}
# Frontend (Next.js) — not yet deployed in Phase 0. Uncomment when it lands.
# handle {
# reverse_proxy frontend:3000
# }
# Everything else -> the Next.js frontend.
handle {
respond "Provenance — Phase 0. Backend health at /health; frontend not yet deployed." 200
reverse_proxy frontend:3000
}
}
+11
View File
@@ -57,6 +57,16 @@ services:
start_period: 20s
restart: unless-stopped
frontend:
build:
context: ../frontend
dockerfile: Dockerfile
environment:
NODE_ENV: production
depends_on:
- backend
restart: unless-stopped
caddy:
image: caddy:2
ports:
@@ -72,6 +82,7 @@ services:
- caddyconfig:/config
depends_on:
- backend
- frontend
restart: unless-stopped
volumes: