8565942392
Serve the whole stack behind one host: site at /, game UI at /game/, gateway REST at /api + /healthz, Connect at /rpc (prefix stripped by the edge Caddy). The built artifact is domain-agnostic — the UI talks to the gateway same-origin via relative URLs, so the same bundle runs under any host with no rebuild and with CORS disabled. - Rename the Connect proto service galaxy.gateway.v1.EdgeGateway -> edge.v1.Gateway; regenerate Go + TS; public path /rpc/edge.v1.Gateway. - Move the game UI under base path /game (env BASE_PATH); make the manifest, service-worker scope, WASM loader, and all navigation base-aware via a withBase helper. - Relative API + /rpc Connect prefix; Vite dev proxy mirrors the strip. - Rewrite the edge Caddy (dev + prod) for path-based routing; empty CORS allow-lists (same-origin); single host. - New VitePress project site (site/): i18n en/ru with switcher, LaTeX math, minimal monospace theme; built and served at /. - dev-deploy compose/Makefile + CI (dev-deploy, prod-build, new site-build) build and seed the site; probes hit /, /game/, /healthz. - Sync docs (ARCHITECTURE, gateway README/openapi, dev-deploy & local-dev READMEs, CLAUDE.md, ui/PLAN). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: Deploy · Prod
|
|
|
|
# Placeholder for the production rollout workflow. Today it only proves
|
|
# the manual entry point works; the actual `docker save | ssh prod
|
|
# docker load` + remote `docker compose up -d` pipeline is wired in
|
|
# once the production host, SSH credentials, and DNS are decided.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
image_tag:
|
|
description: "Image tag to deploy (commit-<sha12>, produced by prod-build.yaml)"
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Announce target
|
|
run: |
|
|
echo "Would deploy image tag: ${{ inputs.image_tag }}"
|
|
echo "TODO:"
|
|
echo " 1. Download galaxy-images-${{ inputs.image_tag }} from prod-build artifacts."
|
|
echo " 2. scp the .tar.gz bundles to the production host."
|
|
echo " 3. ssh prod 'docker load -i ...' for backend / gateway / engine."
|
|
echo " 4. ssh prod 'docker compose -f /opt/galaxy/docker-compose.yml up -d'."
|
|
echo " 5. Probe https://<public host>/healthz and roll back on failure."
|