[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:
@@ -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"
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
Ianitor Domi now runs for any small team, not only on a NixOS server, and gives Fabrica a preview address for
|
||||
every branch.
|
||||
|
||||
- **Install anywhere.** A one-line installer for Linux with systemd, a Docker image with a compose file, and
|
||||
Windows Server, where Ianitor runs with Caddy as its engine (same screens, same route files; Pingora's Windows
|
||||
support is still preliminary). The NixOS module stays.
|
||||
- **Branch previews.** Fabrica asks for `<branch>--<project>.<your preview domain>` and gets it, with a certificate
|
||||
from the Domi CA or Let's Encrypt; it closes when the branch is merged or its time runs out. Any branch name works:
|
||||
unusual characters, dots and long names all become a safe address, and two branches never share one.
|
||||
- **A token that can only do previews.** Fabrica's token opens and closes previews and nothing else, and previews
|
||||
may only point where you allow, never at Ianitor's own admin ports.
|
||||
- **Your team, without Authelia.** The installer prints a sign-in link for the first admin; admins invite the rest
|
||||
with a link. Members change hosts and previews; admins also manage people, tokens, the engine and certificates.
|
||||
Authelia still works where you have it.
|
||||
- **Previews screen.** See every open preview in one click, close one in two.
|
||||
- **Routes on any git host.** Push the routes repository to Gitea, GitHub or GitLab.
|
||||
- **Tested on Windows too.** The comparison of Pingora and Caddy now also runs on Windows, with Windows paths.
|
||||
Reference in New Issue
Block a user