chore(ci): align Forgejo workflows with bootcamp trigger and publish rules #15

Closed
opened 2026-11-07 22:19:13 +00:00 by dsh · 1 comment
Member

Scope

The bootcamp says a published project must not run workflows on pull_request (the shared runner gives jobs the host Docker socket) and real publishes happen only from v* tags; a manual run is a dry run.

Changes

  • ci.yml: trigger on pushes to master and manual dispatch only; drop pull_request.
  • publish.yml: trigger on v* tags and manual dispatch; build on manual, push only on a tag.
  • Verify the tag matches pyproject.toml version before pushing the image.
  • Use the version tag (plus latest) instead of branch/SHA-only tags.
  • Keep the optional manual deploy job, but document that it pulls the current registry latest.

Acceptance

  • No pull_request trigger anywhere in .forgejo/workflows/.
  • Workflow YAML validates.
  • README/AGENTS point at the tag-based flow.
  • Commit + issue closed with the SHA.
## Scope The bootcamp says a published project must not run workflows on `pull_request` (the shared runner gives jobs the host Docker socket) and real publishes happen only from `v*` tags; a manual run is a dry run. ## Changes - `ci.yml`: trigger on pushes to `master` and manual dispatch only; drop `pull_request`. - `publish.yml`: trigger on `v*` tags and manual dispatch; build on manual, push only on a tag. - Verify the tag matches `pyproject.toml` version before pushing the image. - Use the version tag (plus `latest`) instead of branch/SHA-only tags. - Keep the optional manual deploy job, but document that it pulls the current registry `latest`. ## Acceptance - No `pull_request` trigger anywhere in `.forgejo/workflows/`. - Workflow YAML validates. - README/AGENTS point at the tag-based flow. - Commit + issue closed with the SHA.
Author
Member

Done in 5a63f47. CI now runs only on pushes to master and manual dispatch — no pull_request trigger. Publish runs on v* tags or manual dry run; the tag/version check uses pyproject.toml, images are pushed as {version,latest} only from a tag, and an existing version is left untouched. README and devops/deploy.md document the flow.

Done in `5a63f47`. CI now runs only on pushes to `master` and manual dispatch — no `pull_request` trigger. Publish runs on `v*` tags or manual dry run; the tag/version check uses `pyproject.toml`, images are pushed as `{version,latest}` only from a tag, and an existing version is left untouched. README and `devops/deploy.md` document the flow.
dsh closed this issue 2026-11-07 22:25:03 +00:00
Sign in to join this conversation.
No description provided.