fix(workflow): standardize to 4-workflow pattern (pr/main/tag/cron) #7
Reference in New Issue
Block a user
Delete Branch "fix/workflow-standard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Replace the monolithic
docker-build.yamlwith the standard 4-workflow pattern used across the perso org.Changes
.gitea/workflows/docker-build.yaml— old monolithic workflow.gitea/workflows/pr.yaml— PR checks (hadolint ∥ build-test, no push).gitea/workflows/main.yaml— merge to main (test ⇒ build ⇒ git tag, no Docker push).gitea/workflows/tag.yaml— tag push (test ⇒ build-push to DockerHub, pushes:vX.Y.Z+:vX.Y.Z-latest).gitea/workflows/cron.yaml— nightly rebuild (test ⇒ build-push:$TAG-latest)Key design decisions
tag.yaml). Main merges only build, test, and create a git semver tag. This prevents accidentally pushing broken code.testjobs just validate the Docker build succeeds (clones HKUDS/nanobot, builds the image).https://github.com/HKUDS/nanobot.gittoexternal-nanobot/and build fromexternal-nanobot/Dockerfile.:latesttag: Following the tag-only-push pattern, no mutable:latesttag is pushed. Users pull specific versions.continue-on-error: trueat step level).0 0 * * *(daily at midnight).SA_TOKEN_ACTION_PUSH_TAGS(notGITHUB_TOKEN) so the tag push triggerstag.yaml.Architecture