-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
76 lines (69 loc) · 2.15 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: 2
env:
- CGO_ENABLED=0
before:
hooks:
- mage
- go generate ./...
- go mod tidy
- go mod download
builds:
- id: traefik-acme
main: ./cmd/traefik-acme
binary: traefik-acme
flags:
- -tags=release
- -buildmode=default
- -trimpath
- -v
ldflags:
- "-X github.com/dosquad/go-cliversion.BuildDate={{ .Date }}"
- "-X github.com/dosquad/go-cliversion.BuildDebug=false"
- "-X github.com/dosquad/go-cliversion.BuildMethod=goreleaser"
- "-X github.com/dosquad/go-cliversion.BuildVersion={{.Version}}"
- "-X github.com/dosquad/go-cliversion.GitCommit={{.ShortCommit}}"
- '-X github.com/dosquad/go-cliversion.GitRepo={{.GitURL}}'
- '-X github.com/dosquad/go-cliversion.GitSlug={{- $gitsa := split (trimsuffix .GitURL ".git") ":" -}}{{- $gitsp := split (index $gitsa 1) "/" -}}{{- $size := len $gitsp -}}{{- $sla := len (slice (printf "%*s" $size "") 2) -}}{{ $slb := len (slice (printf "%*s" $size "") 1) -}}{{index $gitsp $sla}}/{{index $gitsp $slb}}'
- "-X github.com/dosquad/go-cliversion.GitTag={{.Version}}"
- "-X github.com/dosquad/go-cliversion.GitExactTag={{.RawVersion}}"
- "-X main.commit={{.ShortCommit}}"
- "-X main.date={{ .Date }}"
- "-X main.builtBy=goreleaser"
- "-X main.repo={{.GitURL}}"
- "-X main.goVersion=1.22.4"
- "-X main.version={{.Version}}"
- "-s"
- "-w"
mod_timestamp: '{{ .CommitTimestamp }}'
goarm: [ '5', '6', '7' ]
goos: ['linux', 'darwin', 'windows']
goarch: ['amd64', 'arm', 'arm64']
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
checksum:
algorithm: sha256
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms:
-
id: traefik-acme-nfpms
package_name: traefik-acme
builds:
- traefik-acme
homepage: https://github.com/na4ma4/traefik-acme
maintainer: na4ma4 <[email protected]>
description: Traefik ACME extraction tool.
formats:
- apk
- deb
bindir: /usr/bin