-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.goreleaser.yml
44 lines (44 loc) · 1.28 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
version: 2
project_name: trafficmirror
release:
github:
owner: rb3ckers
name: trafficmirror
name_template: '{{.Tag}}'
before:
hooks:
- go mod tidy
- go mod download
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
ldflags:
- -s -w -X github.com/rb3ckers/trafficmirror.Version={{.Version}}
- -X github.com/rb3ckers/trafficmirror.Commit={{.Commit}}
- -X github.com/rb3ckers/trafficmirror.Date={{.Date}}
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:{{ .Tag }}"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Major }}"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Major }}.{{ .Minor }}"