feat/version #2

Merged
unkinben merged 7 commits from feat/version into master 2026-03-25 19:25:12 +11:00

7 Commits

Author SHA1 Message Date
unkinben c4cdfd2cc1 Fix all golangci-lint errcheck and unused warnings
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/unit-tests Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
- Wrap defer resp.Body.Close() to capture error
- Ignore json.Unmarshal error in valueAny (best-effort)
- Check enc.Encode and os.Stdout.Write return values
- Check json.NewEncoder.Encode and w.Write in test helpers
- Check os.MkdirAll and os.WriteFile errors in tests
- Check first writeDefaultConfig() call in AlreadyExists test
- Remove unused mustMarshal helper
2026-03-25 17:40:40 +11:00
unkinben 0ba9a3da09 feat: use gobuilder image for pre-commit
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/unit-tests Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
- add golang on top of base image
- unkin/packer-images#44
2026-03-25 17:35:42 +11:00
unkinben 16072917f0 feat: Add environment secret and kubernetes serviceAccount to release pipeline
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/unit-tests Pipeline was successful
2026-03-25 16:59:48 +11:00
unkinben c8df109841 Add unit-test and lint woodpecker pipelines for pull requests
Also move .woodpecker.yaml into .woodpecker/release.yaml for consistency.
2026-03-25 16:01:38 +11:00
unkinben 03abf1b976 Add Woodpecker CI pipeline to build and release on tag 2026-03-25 15:59:34 +11:00
unkinben 677016ca52 Auto-push tag and create Gitea release on make patch/minor/major 2026-03-25 15:55:46 +11:00
unkinben 7d256a999f Add version subcommand and Makefile semver bump targets
- var version injected at build time via -X main.version=$(VERSION)
- VERSION derives from 'git describe --tags' so built binaries show
  the exact tag (or tag+commits+sha for dirty/untagged builds)
- 'make patch/minor/major' reads the latest vX.Y.Z tag and creates
  the next one; starts from v0.0.0 if no tags exist yet
2026-03-25 15:55:17 +11:00