feat(website): add k8s deployment, service, ingress rules and CI for SOR.Website

- deployment-website.yaml + service-website.yaml: new ClusterIP deployment
  for sor-website image; injects only the three secrets it needs (Postgres,
  Redis, Cdn__PublicBaseUrl) — no NATS or ENABLED_SERVICES
- ingress.yaml: add TLS + rules for aeternalisgames.com and www.aeternalisgames.com
  pointing to sor-website service
- appsettings.json: remove localhost ConnectionStrings (dev defaults already
  live in appsettings.Development.json; prod values come from k8s secrets)
- build-push.yml: build and push sor-website image from Dockerfile.website
- build-push-client.yml: add paths filter so Godot export only runs on
  Client/** changes; add --network host to docker build

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-04-23 06:30:13 -04:00
co-authored by Claude Happy
parent 4ead96be0c
commit d2a4639007
6 changed files with 49 additions and 14 deletions
+14 -1
View File
@@ -24,33 +24,43 @@ spec:
containers:
- name: sor-website
image: registry.aeternalisgames.com/sor/sor-server:latest
image: registry.aeternalisgames.com/sor/sor-website:latest
ports:
- containerPort: 8080
# ── Shared non-secret config ───────────────────────────────────────
# Only ASPNETCORE_URLS and ASPNETCORE_ENVIRONMENT are relevant here.
# WebSocket/NATS/Gateway keys from sor-config are ignored by SOR.Website.
envFrom:
- configMapRef:
name: sor-config
# ── Website-specific secrets ───────────────────────────────────────
env:
# Postgres — Identity schema (account login/register) and Catalog
# (card/deck data displayed on the website).
- name: ConnectionStrings__Default
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: ConnectionStrings__Default
# Redis — stores DataProtection keys so all pod replicas can decrypt
# each other's __Host-sor-web-session cookies.
- name: ConnectionStrings__Redis
valueFrom:
secretKeyRef:
name: redis-credentials
key: connection-string
# CDN — public base URL used in page templates to build asset URLs.
- name: Cdn__PublicBaseUrl
valueFrom:
secretKeyRef:
name: sor-app-secrets
key: Cdn__PublicBaseUrl
# ── Health checks ──────────────────────────────────────────────────
livenessProbe:
httpGet:
path: /health
@@ -69,6 +79,9 @@ spec:
timeoutSeconds: 3
failureThreshold: 3
# ── Resources ─────────────────────────────────────────────────────
# Razor Pages with no background workers — light CPU, moderate memory
# for EF Core query compilation cache.
resources:
requests:
cpu: "100m"