71 lines
3.4 KiB
YAML
71 lines
3.4 KiB
YAML
# 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
|
|
# the demo control plane with invented data, in headless Edge. No landing page while app.yaml has no `aula: true`.
|
|
name: release
|
|
on:
|
|
tag: "v*"
|
|
manual: true
|
|
runner: windows
|
|
steps:
|
|
- id: version
|
|
run: node scripts/check-version.mjs ${{ version }}
|
|
- id: install
|
|
run: pnpm install --frozen-lockfile
|
|
- id: check
|
|
needs: [install]
|
|
run: pnpm --filter web check
|
|
- 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"]
|
|
- id: shots
|
|
needs: [check, test]
|
|
run: node apps/web/scripts/shots.mjs
|
|
artifacts: ["target/aula/aula-*.png", "target/aula/aula.json"]
|
|
- id: approve
|
|
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"
|
|
- "**/aula.json"
|
|
sums: domi-release
|