wg-quicker/.goreleaser.yml

191 lines
4.0 KiB
YAML
Raw Permalink Normal View History

---
project_name: wg-quicker
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 wireguard-go 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 wireguard-go GOARCH={{.Arch}}
2021-01-22 11:27:22 +01:00
2022-01-07 20:17:12 +01:00
- id: "386"
env:
- CGO_ENABLED=0
goarch:
2022-01-07 20:17:12 +01:00
- "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 wireguard-go GOARCH={{.Arch}}
2021-01-22 11:27:22 +01:00
- id: arm-5
env:
- CGO_ENABLED=0
goarch:
- arm
goarm:
2022-01-07 20:17:12 +01:00
- "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 wireguard-go GOARCH={{.Arch}} GOARM=5
2021-01-22 11:27:22 +01:00
- id: arm-6
env:
- CGO_ENABLED=0
goarch:
- arm
goarm:
2022-01-07 20:17:12 +01:00
- "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 wireguard-go GOARCH={{.Arch}} GOARM=6
2021-01-22 11:27:22 +01:00
- id: arm-7
env:
- CGO_ENABLED=0
goarch:
- arm
goarm:
2022-01-07 20:17:12 +01:00
- "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 wireguard-go GOARCH={{.Arch}} GOARM=7
2021-01-22 11:27:22 +01:00
archives:
2021-05-11 14:33:41 +02:00
- format: tar.gz
id: tar.gz
2021-05-11 14:33:41 +02:00
replacements:
darwin: macos
- format: binary
id: binary-archive
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:"
- "^ci:"
- "^lint:"
2021-04-14 10:57:40 +02:00
- "^happy linting"
2021-01-27 09:50:04 +01:00
release:
github:
owner: xsteadfastx
name: wg-quicker
nfpms:
- formats:
- apk
- deb
- rpm
replacements:
386: i386
homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
maintainer: Marvin Preuss <marvin@xsteadfastx.org>
2021-03-08 09:17:06 +01:00
bindir: /usr/local/bin
contents:
- src: init/openrc/wg-quicker.init
dst: /etc/init.d/wg-quicker
packager: apk
file_info:
mode: 0755
owner: root
group: root
- src: init/systemd/wg-quicker@.service
dst: /etc/systemd/system/wg-quicker@.service
packager: deb
- src: init/systemd/wg-quicker@.service
dst: /etc/systemd/system/wg-quicker@.service
packager: rpm
2021-01-27 09:50:04 +01:00
brews:
- name: wg-quicker
2022-01-10 09:45:39 +01:00
ids:
- tar.gz
2021-01-27 09:50:04 +01:00
tap:
owner: xsteadfastx
name: homebrew-tap
commit_author:
name: Marvin Steadfast
email: marvin@xsteadfastx.org
homepage: https://git.xsfx.dev/xsteadfastx/wg-quicker
2021-01-27 11:35:23 +01:00
install: |
bin.install "wg-quicker"
2021-01-27 09:50:04 +01:00
test: |
system "#{bin}/wg-quicker version"