-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
49 lines (43 loc) · 960 Bytes
/
.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
project_name: hlf-api
release:
name_template: "Version {{.Version}}"
github:
owner: kfsoftware
name: hlf-api
before:
hooks:
- go mod tidy
- go mod download
builds:
- id: hlf-api
binary: hlf-api
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Tag}}
flags:
- -trimpath
archives:
- format: binary
allow_different_binary_count: true
dockers:
- # GOOS of the built binary that should be used.
goos: linux
# GOARCH of the built binary that should be used.
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "quay.io/kfsoftware/hlf-api:{{ .Tag }}"
- "quay.io/kfsoftware/hlf-api:v{{ .Major }}"
- "quay.io/kfsoftware/hlf-api:v{{ .Major }}.{{ .Minor }}"
- "quay.io/kfsoftware/hlf-api:latest"
extra_files:
- LICENSE
- README.md