[docs] Previews (the API for Fabrica, names, the token from the team vault), Ianitor anywhere (Linux, Docker, Windows Server in Caddy mode, NixOS), team sign-in in api.md, the Custos ticket's T4 part; release 0.2.0: the pipeline builds and tests the Linux tarball, the Windows zip and the image; the NixOS previews option; Docker and Linux smoke scripts

This commit is contained in:
2026-11-17 20:59:42 +01:00
parent d5d522fe4b
commit defd722cc2
15 changed files with 549 additions and 15 deletions
+32 -6
View File
@@ -1,7 +1,9 @@
# Ianitor Domi: the Gitea release of a v* tag (docs/release.md). Ianitor ships no binary (the server builds it with
# Nix and the deploy pipeline switches it in), so a release is its notes and screenshots of the web UI, published under
# a SHA256SUMS signed by domi-release through Custos; release-notes.md is also the release's text on Gitea.
# The Windows runner (the Fabrica app on Mark's PC) runs it: `fabrica`, node and pnpm are on every step's PATH.
# Ianitor Domi: the Gitea release of a v* tag (docs/release.md). Since 0.2.0 (T4) a release carries the programs:
# the Linux tarball and its one-line installer (systemd), the Windows Server zip (Caddy mode), next to the notes and
# screenshots of the web UI, all under a SHA256SUMS signed by domi-release through Custos. The Docker image is built
# from the same Dockerfile; it is not pushed to a registry yet (docs/deploy/anywhere.md).
# The Windows runner (the Fabrica app on Mark's PC) runs it: `fabrica`, node, pnpm, cargo and Docker Desktop are on
# every step's PATH; the Linux parts build inside Docker (deploy/docker/Dockerfile), never on the host.
# No Gitea webhook to the hub yet: a pushed tag is started on demand (the hub's POST /api/runs, ref v<version>).
# `notes` is Fabrica's release notes since the previous v* tag (Fabrica docs/12_release_kit.md); `shots` takes the
# same files as `fabrica aula shots` (core docs/FORMATS.md, "Fabrica: the Aula page") from the built web UI against
@@ -22,6 +24,27 @@ steps:
- id: test
needs: [install]
run: pnpm --filter web test
# The whole Rust workspace on Linux (the differential suite against Caddy, Pebble ACME, the edge suites), in the CI
# image; two jobs, so Docker Desktop's memory holds.
- id: linux-tests
needs: [version]
run: docker build --load -f deploy/docker/Dockerfile --target ci -t ianitor-ci:${{ version }} . && docker run --rm --memory 6g ianitor-ci:${{ version }} cargo test --workspace --locked -j 2
# Windows: the Caddy-mode tests and the differential suite with Windows paths (Pingora against Windows Caddy;
# IANITOR_CADDY_BIN names caddy.exe on the runner).
- id: windows-tests
needs: [version]
run: cargo test --workspace --locked
- id: windows
needs: [check, test, windows-tests]
run: cargo build --release --locked -p ianitor-control --no-default-features && pnpm --filter web build && node scripts/package-windows.mjs
artifacts: ["target/dist/ianitor-*-windows-x86_64.zip"]
- id: linux
needs: [linux-tests]
run: docker build -f deploy/docker/Dockerfile --target dist --output type=local,dest=target/dist .
artifacts: ["target/dist/ianitor-*-linux-x86_64.tar.gz", "target/dist/install.sh"]
- id: image
needs: [linux-tests]
run: docker build --load -f deploy/docker/Dockerfile -t ianitor:${{ version }} .
- id: notes
run: fabrica notes
artifacts: ["target/notes/release-notes.md", "target/notes/release-notes.json"]
@@ -30,13 +53,16 @@ steps:
run: node apps/web/scripts/shots.mjs
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
- id: approve
needs: [version, notes, shots]
approve: "Publish Ianitor ${{ tag }}: its notes and screenshots?"
needs: [version, notes, shots, windows, linux, image]
approve: "Publish Ianitor ${{ tag }}: the Linux tarball, the Windows Server zip, notes and screenshots?"
- id: publish
needs: [approve]
publish:
gitea-release: true
files:
- "**/ianitor-*-linux-x86_64.tar.gz"
- "**/install.sh"
- "**/ianitor-*-windows-x86_64.zip"
- "**/release-notes.md"
- "**/release-notes.json"
- "**/aula-*.png"