mirror of
https://github.com/lukaszraczylo/git-velocity.git
synced 2026-06-05 22:43:56 +00:00
96 lines
1.8 KiB
YAML
96 lines
1.8 KiB
YAML
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
- go generate ./...
|
|
|
|
builds:
|
|
- id: git-velocity
|
|
main: ./cmd/git-velocity
|
|
binary: git-velocity
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -s -w
|
|
- -X github.com/lukaszraczylo/git-velocity/pkg/version.Version={{.Version}}
|
|
- -X github.com/lukaszraczylo/git-velocity/pkg/version.Commit={{.Commit}}
|
|
- -X github.com/lukaszraczylo/git-velocity/pkg/version.BuildDate={{.Date}}
|
|
|
|
archives:
|
|
- id: git-velocity
|
|
formats: [tar.gz]
|
|
name_template: "git-velocity-{{ .Os }}-{{ .Arch }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
- config.example.yaml
|
|
|
|
checksum:
|
|
name_template: "git-velocity-checksums.txt"
|
|
algorithm: sha256
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|
|
- '^Merge'
|
|
- '^WIP'
|
|
- '^Update go.mod'
|
|
- '^chore:'
|
|
|
|
release:
|
|
github:
|
|
owner: lukaszraczylo
|
|
name: git-velocity
|
|
name_template: "v{{.Version}}"
|
|
draft: false
|
|
prerelease: auto
|
|
|
|
dockers_v2:
|
|
- images:
|
|
- "ghcr.io/lukaszraczylo/git-velocity"
|
|
tags:
|
|
- "{{ .Version }}"
|
|
- "latest"
|
|
- "v1"
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
dockerfile: Dockerfile.goreleaser
|
|
extra_files:
|
|
- config.example.yaml
|
|
|
|
signs:
|
|
- cmd: cosign
|
|
signature: "${artifact}.sigstore.json"
|
|
args:
|
|
- sign-blob
|
|
- "--bundle=${signature}"
|
|
- "${artifact}"
|
|
- "--yes"
|
|
artifacts: checksum
|
|
output: true
|
|
|
|
docker_signs:
|
|
- cmd: cosign
|
|
artifacts: manifests
|
|
output: true
|
|
args:
|
|
- sign
|
|
- "${artifact}@${digest}"
|
|
- "--yes"
|
|
|