-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
68 lines (68 loc) · 1.65 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
gomod:
proxy: false
env:
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
before:
hooks:
- go generate ./...
- go run github.com/google/go-licenses@latest save ./... --save_path=./notices --force --ignore github.com/pjbgf/sha1cd/cgo --ignore github.com/cloudflare/circl --ignore golang.org/x
builds:
- id: wiki
env:
- CGO_ENABLED=0
gcflags:
- ./dontoptimizeme=-N
ldflags:
- -s -w -X main.version={{.Version}}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
- windows
- darwin
ignore:
- goos: linux
goarch: 386
- goos: windows
goarch: 386
dockers:
- goos: linux
goarch: amd64
goarm: ''
dockerfile: gorelease.Dockerfile
image_templates:
- "ghcr.io/mdbot/wiki:{{ .Major }}"
- "ghcr.io/mdbot/wiki:{{ .Major }}.{{ .Minor }}"
- "ghcr.io/mdbot/wiki:{{ .Tag }}"
- "ghcr.io/mdbot/wiki:latest"
build_flag_templates:
- --label=org.opencontainers.image.source=https://github.com/mdbot/wiki
extra_files:
- notices
milestones:
- close: true
changelog:
skip: true
archives:
- name_template: >-
{{- .ProjectName }}_
{{- .Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
files:
- notices/**/*
- README*
- LICENSE*
- CHANGELOG*
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "latest-{{.ShortCommit}}"