Enhance Docker workflow with gated publish
Some checks failed
lint / lint (push) Has been cancelled
test / test (push) Has been cancelled

Expand workflow triggers to push/pull_request on main and dev and to PR
reviews. Run lint/test only for non-review events or when a review is
approved. Add a docker-test job that smoke-tests the built image. Add a
docker-publish job that resolves SHA and stable tags (latest/dev),
builds
the releasable image, and optionally pushes when PUSH_IMAGE=true. Update
docs/deployment.md
This commit is contained in:
2026-02-27 11:02:48 +01:00
parent c79cc1ab9e
commit fa30153c0d
2 changed files with 120 additions and 65 deletions

View File

@@ -39,7 +39,7 @@ Workflows live in `.gitea/workflows/`:
- `lint.yml`: ruff + format checks + mypy.
- `test.yml`: lint + tests + coverage fail-under `80`.
- `docker.yml`: gated Docker build (depends on lint+test), SHA tag, `latest` on `main`.
- `docker.yml`: lint + test + docker smoke-test gating; image publish on push to `main`/`dev` and on approved PR review targeting `main`/`dev`; tags include commit SHA plus `latest` (`main`) or `dev` (`dev`).
## Production Recommendations