Releases for cnx01: every push to main becomes a signed release
As thukthuk and lampbench-web: once the checks pass on a push to main, the CI job `release` reserves the next CalVer version (YYYY.M.MICRO, Bangkok time) with a draft release, builds the server on Ubuntu 22.04 (glibc 2.35) with that version and the commit (`VISA_COMMIT`), packs bin/visa, VERSION and COMMIT as visa-linux-x86_64.tar.gz, signs it with the repository secret RELEASE_SIGNING_KEY (ssh-keygen, namespace visa-release, principal visa-ci; checked against release/allowed-signers before it is published) and publishes the release. cnx01 will install a release only with that signature (cnx-network-clan modules/visa, in a PR of its own). - .gitea/scripts/release.py and test_release.py from lamp-testbench (the same reserve/publish/discard and version order), with visa's one archive; sign-release.sh; build-release.sh. The release scripts' tests run in the check job. - `visa --version` (and `visa version`): "visa <version> (<commit>)", which CI and cnx01's fetch check. - The key was made locally, put into the secret through the API and deleted; only its public half is in the repo. - README, AGENTS (main is live: push only whole steps), PLAN's decisions. Checks: fmt, clippy; test_release.py 14 tests OK in WSL; `visa --version`.
This commit is contained in:
1 parent
1f54d93643
commit
0d3b2d8b84
10 files changed
+866
-9
No files matched your search
@@ -31,6 +31,10 @@ visa.buildfor.life holds passport data of real people. Read this file and
|
||||
- **No inline script or style.** The Content Security Policy refuses them;
|
||||
`tests/pages.rs` checks the templates.
|
||||
- **Migrations** are never edited once they are on `main`; add a new file.
|
||||
- **`main` is live.** Every push to `main` that passes CI becomes a signed
|
||||
release that cnx01 installs and restarts on within 15 minutes, migrations
|
||||
included. Push only whole, working steps to `main`; unfinished work stays
|
||||
on a branch or uncommitted.
|
||||
- **A new kind of record** for a stay is a migration and one `Kind` in
|
||||
`src/records.rs`; the routes, the form, the Stay tab and the audit entries
|
||||
follow from it. A reference to another record is a selection (`Input::
|
||||
@@ -76,6 +80,7 @@ and dark, at desktop and phone width, with `scripts/dev.sh` running.
|
||||
| `src/documents.rs` | documents of people and companies: kinds, records, SQL, `files-check`, `files-migrate` |
|
||||
| `src/papers/` | the Immigration Bureau's forms filled in (`layout.rs` is generated by `scripts/gen_layout.py`) |
|
||||
| `src/pack/` | the extension pack: its rules as a pure function (`assess`), and the pack as one PDF (`pdf.rs`) |
|
||||
| `.gitea/scripts/` | CI: toolchain, gitleaks, and the release (`release.py` + `test_release.py`, `build-release.sh`, `sign-release.sh`; key `release/allowed-signers`) |
|
||||
| `static/mrz-photo.js` | the passport photo reader in the browser (camera view, Tesseract.js from `static/vendor/tesseract/`, see its README.txt); the server's half is `mrz::from_ocr` |
|
||||
| `src/web/` | routes, the login gate, pages |
|
||||
| `templates/` | minijinja templates, compiled in by `build.rs` |
|
||||
|
||||
Reference in new issue
Block a user