wg-quicker/.goreleaser.yml

159 lines
3.3 KiB
YAML
Raw Normal View History

---
project_name: wg-quicker
2021-01-21 12:24:32 +01:00
gitea_urls:
api: https://git.xsfx.dev/api/v1/
2021-01-22 11:27:22 +01:00
builds:
- id: amd64
env:
- CGO_ENABLED=0
goarch:
- amd64
goos:
- linux
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
- "-X go.xsfx.dev/wg-quicker/cmd.version={{.Version}}"
- "-X go.xsfx.dev/wg-quicker/cmd.commit={{.ShortCommit}}"
- "-X go.xsfx.dev/wg-quicker/cmd.date={{.Date}}"
hooks:
pre:
- make generate GOARCH={{.Arch}}
2021-01-22 11:27:22 +01:00
- id: arm64
env:
- CGO_ENABLED=0
goarch:
- arm64
goos:
- linux
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
- "-X go.xsfx.dev/wg-quicker/cmd.version={{.Version}}"
- "-X go.xsfx.dev/wg-quicker/cmd.commit={{.ShortCommit}}"
- "-X go.xsfx.dev/wg-quicker/cmd.date={{.Date}}"
hooks:
pre:
- make generate GOARCH={{.Arch}}
2021-01-22 11:27:22 +01:00
- id: 386
env:
- CGO_ENABLED=0
goarch:
- 386
goos:
- linux
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
- "-X go.xsfx.dev/wg-quicker/cmd.version={{.Version}}"
- "-X go.xsfx.dev/wg-quicker/cmd.commit={{.ShortCommit}}"
- "-X go.xsfx.dev/wg-quicker/cmd.date={{.Date}}"
hooks:
pre:
- make generate GOARCH={{.Arch}}
2021-01-22 11:27:22 +01:00
- id: arm-5
env:
- CGO_ENABLED=0
goarch:
- arm
goarm:
- 5
goos:
- linux
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
2021-01-22 09:34:45 +01:00
- "-X go.xsfx.dev/wg-quicker/cmd.version={{.Version}}"
- "-X go.xsfx.dev/wg-quicker/cmd.commit={{.ShortCommit}}"
- "-X go.xsfx.dev/wg-quicker/cmd.date={{.Date}}"
hooks:
pre:
- make clean
- make generate GOARCH={{.Arch}} GOARM=5
2021-01-22 11:27:22 +01:00
- id: arm-6
env:
- CGO_ENABLED=0
goarch:
- arm
goarm:
- 6
goos:
- linux
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
- "-X go.xsfx.dev/wg-quicker/cmd.version={{.Version}}"
- "-X go.xsfx.dev/wg-quicker/cmd.commit={{.ShortCommit}}"
- "-X go.xsfx.dev/wg-quicker/cmd.date={{.Date}}"
hooks:
pre:
- make generate GOARCH={{.Arch}} GOARM=6
2021-01-22 11:27:22 +01:00
- id: arm-7
env:
- CGO_ENABLED=0
goarch:
- arm
goarm:
- 7
goos:
- linux
ldflags:
- "-s"
- "-w"
- "-extldflags '-static'"
- "-X go.xsfx.dev/wg-quicker/cmd.version={{.Version}}"
- "-X go.xsfx.dev/wg-quicker/cmd.commit={{.ShortCommit}}"
- "-X go.xsfx.dev/wg-quicker/cmd.date={{.Date}}"
hooks:
pre:
- make generate GOARCH={{.Arch}} GOARM=7
2021-01-22 11:27:22 +01:00
archives:
- replacements:
darwin: macos
2021-01-22 11:27:22 +01:00
checksum:
name_template: "checksums.txt"
2021-01-22 11:27:22 +01:00
snapshot:
name_template: "{{ .Tag }}-next"
2021-01-22 11:27:22 +01:00
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- formats:
- apk
- deb
- rpm
replacements:
386: i386
homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
maintainer: Marvin Preuss <marvin@xsteadfastx.org>
2021-01-25 15:08:00 +01:00
# brews:
# - name: wg-quicker
# tap:
# owner: xsteadfastx
# name: homebrew-tap
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
# commit_author:
# name: Marvin Steadfast
# email: marvin@xsteadfastx.org
# homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
# test: |
# system "#{bin}/wg-quicker version"