-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
57 lines (56 loc) · 1.51 KB
/
.goreleaser.yaml
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
before:
hooks:
- go mod tidy -compat=1.18
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- "386"
- amd64
- arm
- arm64
goarm:
- "5"
- "6"
- "7"
main: ./cmd/mydyndns
binary: mydyndns
ldflags:
- -s -w -X {{.ModulePath}}/cmd/mydyndns/cli.Version={{.Version}}
-X main.commit={{.Commit}}
-X main.date={{.Date}}
-X main.builtBy=goreleaser
archives:
- format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Major }}"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Major }}.{{ .Minor }}"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
dockerfile: goreleaser.Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.description={{.ReleaseNotes}}"
- "--platform=linux/amd64"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^test:'