-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
50 lines (50 loc) · 1.21 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
project_name: docker-janitor
release:
disable: true
changelog:
skip: true
builds:
- binary: docker-janitor
id: docker_janitor_linux
goos:
- linux
goarch:
- amd64
- 386
ldflags:
- -s -w
- -X main.version={{ .Tag }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{.Date}}
- -X main.builtBy=Goreleaser
hooks:
post:
- upx "{{ .Path }}"
# notice that we need a separated build for the MacOS binary only:
- binary: docker-janitor
id: docker_janitor_macos
goos:
- darwin
goarch:
- amd64
archives:
-
# ID of the nfpm config, must be unique.
# Defaults to "default".
id: docker-janitor
# Build IDs for the builds you want to create NFPM packages for.
# Defaults to all builds.
builds:
- docker_janitor_linux
- docker_janitor_macos
# Replacements for GOOS and GOARCH in the package name.
# Keys should be valid GOOSs or GOARCHs.
# Values are the respective replacements.
# Default is empty.
replacements:
amd64: x64
386: x32
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: tgz
snapshot:
name_template: '{{ .Tag }}'