Enhance Docker workflow with gated publish
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user