5aab391b74
- Add module + build cache to CI (was only caching go-build, not go/pkg/mod) - Declare explicit Alpine container instead of relying on runner image - Drop redundant go vet (already in golangci-lint) - Add govulncheck job for dependency CVE scanning - Add GoReleaser config for Gitea-native binary releases + checksums - Replace .github/workflows/docker.yml with .gitea/workflows/release.yml - Docker multiarch (amd64+arm64) via buildx in release workflow - Dockerfile: add --mount=type=cache for mod/build, add -trimpath
43 lines
699 B
YAML
43 lines
699 B
YAML
version: 2
|
|
|
|
gitea_urls:
|
|
api: https://gitea.lerkolabs.com/api/v1
|
|
download: https://gitea.lerkolabs.com
|
|
|
|
release:
|
|
gitea:
|
|
owner: lerko
|
|
name: uptop
|
|
|
|
builds:
|
|
- main: ./cmd/uptop/main.go
|
|
binary: uptop
|
|
env:
|
|
- CGO_ENABLED=1
|
|
goos:
|
|
- linux
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- -s -w
|
|
- -X main.version={{ .Version }}
|
|
- -X main.commit={{ .Commit }}
|
|
- -X main.date={{ .Date }}
|
|
flags:
|
|
- -trimpath
|
|
|
|
archives:
|
|
- formats: [tar.gz]
|
|
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^chore:"
|
|
- "^style:"
|