CI can currently deploy an image that never passed its tests, is unscanned and is signed only on a best-effort basis. Before anything reaches production, the pipeline has to be the gate.
What to change
In .gitea/workflows/ci.yml:
Deploy jobs get needs: check, and check also runs on main (P0).
Test every crate, plus the Mongo integration tests (tenant_isolation, tenant_status_middleware, werkbank_api, demo_seed — MVP-1.13).
Trivy image scan (P0).
cosign signs :sha-*, and a signing failure fails the job.
Build args for the sha and the build date, feeding /version (MVP-1.1).
Acceptance
A failing test or a Trivy finding above the threshold blocks the deploy job.
check runs on pushes to main, not only on PRs.
Mongo integration tests run with a service container in CI.
Every published image is cosign-signed; a signing failure fails the workflow.
/version on stage reports the sha and date of the deployed build.
Nightly: the firmwerk git auth in nightly.yml is fixed so the nightly job runs (see #188).
## Goal
CI can currently deploy an image that never passed its tests, is unscanned and is signed only on a best-effort basis. Before anything reaches production, the pipeline has to be the gate.
## What to change
In `.gitea/workflows/ci.yml`:
- Deploy jobs get `needs: check`, and `check` also runs on `main` (**P0**).
- Test every crate, plus the Mongo integration tests (`tenant_isolation`, `tenant_status_middleware`, `werkbank_api`, `demo_seed` — MVP-1.13).
- Trivy image scan (**P0**).
- cosign signs `:sha-*`, and a signing failure fails the job.
- Build args for the sha and the build date, feeding `/version` (MVP-1.1).
## Acceptance
- [ ] A failing test or a Trivy finding above the threshold blocks the deploy job.
- [ ] `check` runs on pushes to `main`, not only on PRs.
- [ ] Mongo integration tests run with a service container in CI.
- [ ] Every published image is cosign-signed; a signing failure fails the workflow.
- [ ] `/version` on stage reports the sha and date of the deployed build.
- [ ] Nightly: the firmwerk git auth in `nightly.yml` is fixed so the nightly job runs (see #188).
sharang
added this to the Production MVP milestone 2026-09-20 20:19:45 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
CI can currently deploy an image that never passed its tests, is unscanned and is signed only on a best-effort basis. Before anything reaches production, the pipeline has to be the gate.
What to change
In
.gitea/workflows/ci.yml:needs: check, andcheckalso runs onmain(P0).tenant_isolation,tenant_status_middleware,werkbank_api,demo_seed— MVP-1.13).:sha-*, and a signing failure fails the job./version(MVP-1.1).Acceptance
checkruns on pushes tomain, not only on PRs./versionon stage reports the sha and date of the deployed build.nightly.ymlis fixed so the nightly job runs (see #188).