qinglong-go/.goreleaser.yml

58 lines
1.1 KiB
YAML
Raw Normal View History

2022-11-26 02:31:26 +00:00
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
2023-12-29 11:19:40 +00:00
- id: docker
2022-11-26 02:31:26 +00:00
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
goarch:
- amd64
- arm64
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
2023-01-12 03:21:57 +00:00
- -s -w -X github.com/huoxue1/qinglong-go/service/config.VERSION=v{{.Version}}
2023-12-29 11:19:40 +00:00
2022-11-26 02:31:26 +00:00
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- fix typo
- Merge pull request
- Merge branch
- Merge remote-tracking
- go mod tidy
archives:
2023-12-29 11:19:40 +00:00
2022-11-26 02:31:26 +00:00
- id: nowin
builds:
2023-12-29 11:19:40 +00:00
- docker
2022-11-26 02:31:26 +00:00
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
2023-09-05 11:35:54 +00:00
release:
gitea:
owner: "huoxue1"
name: "qinglong-go"
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
2023-09-06 06:53:21 +00:00
disable: false
gitea_urls:
api: "https://huoxue.link:12300/api/v1"
download: "https://huoxue.link:12300"
force_token: gitea