Add Gitea CI/CD workflows and Dockerfile #1

Merged
aneurin merged 1 commits from ci-cd-workflows into main 2026-09-06 22:23:13 +00:00
Owner

Adapts the project-manager workflows for this Go project.

  • ci.yml (PR → main): go mod verify, go vet, go build, go test, govulncheck in golang:1.25-alpine
  • build.yml (push → main + manual): promote latestprevious, build and push new latest to the Gitea registry
  • release.yml (tag push): build and push an image tagged to match the git tag
  • Dockerfile: multi-stage static build → alpine:3.20, runs non-root
  • .dockerignore

Requires a BUILD_API_TOKEN repo secret (write:package) before build/release can push images.

🤖 Generated with Claude Code

Adapts the project-manager workflows for this Go project. - **ci.yml** (PR → main): `go mod verify`, `go vet`, `go build`, `go test`, `govulncheck` in `golang:1.25-alpine` - **build.yml** (push → main + manual): promote `latest`→`previous`, build and push new `latest` to the Gitea registry - **release.yml** (tag push): build and push an image tagged to match the git tag - **Dockerfile**: multi-stage static build → `alpine:3.20`, runs non-root - **.dockerignore** Requires a `BUILD_API_TOKEN` repo secret (write:package) before build/release can push images. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
aneurin added 1 commit 2026-09-06 22:21:27 +00:00
add Gitea CI/CD workflows and Dockerfile
CI / go-tests (pull_request) Successful in 1m29s
551743176b
CI runs go vet/build/test plus govulncheck on PRs. Build pushes a
latest/previous image to the Gitea registry on push to main, and
Release pushes a tag-matched image on git tags. Adapted from the
project-manager workflows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
aneurin merged commit 1dfa60a237 into main 2026-09-06 22:23:13 +00:00
aneurin deleted branch ci-cd-workflows 2026-09-06 22:23:13 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cloud/ultrashorty#1