-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
77 lines (77 loc) · 2.3 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
69
70
71
72
73
74
75
76
77
project_name: support-bundle
release:
github:
owner: replicatedcom
name: support-bundle
builds:
- id: analyze
goos:
- linux
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cmd/analyze/main.go
ldflags: -s -w
-X github.com/replicatedcom/support-bundle/pkg/version.version={{.Version}}
-X github.com/replicatedcom/support-bundle/pkg/version.gitSHA={{.Commit}}
-X github.com/replicatedcom/support-bundle/pkg/version.buildTime={{.Date}}
-extldflags "-static"
flags: -tags netgo -installsuffix netgo
binary: analyze
hooks: {}
- id: support-bundle
goos:
- linux
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cmd/support-bundle/main.go
ldflags: -s -w
-X github.com/replicatedcom/support-bundle/pkg/version.version={{.Version}}
-X github.com/replicatedcom/support-bundle/pkg/version.gitSHA={{.Commit}}
-X github.com/replicatedcom/support-bundle/pkg/version.buildTime={{.Date}}
binary: support-bundle
hooks: {}
archives:
- format: tar.gz
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}'
files:
- licence*
- LICENCE*
- license*
- LICENSE*
- readme*
- README*
- changelog*
- CHANGELOG*
dockers:
- image_templates:
- replicated/analyze:latest
- replicated/analyze:{{ .Major }}
- replicated/analyze:{{ .Major }}.{{ .Minor }}
- replicated/analyze:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
dockerfile: deploy/Dockerfile-analyze
goos: linux
goarch: amd64
ids:
- analyze
- image_templates:
- registry.replicated.com/library/support-bundle:latest
- registry.replicated.com/library/support-bundle:{{ .Major }}
- registry.replicated.com/library/support-bundle:{{ .Major }}.{{ .Minor }}
- registry.replicated.com/library/support-bundle:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
- replicated/support-bundle:latest
- replicated/support-bundle:{{ .Major }}
- replicated/support-bundle:{{ .Major }}.{{ .Minor }}
- replicated/support-bundle:{{ .Major }}.{{ .Minor }}.{{ .Patch }}
dockerfile: deploy/Dockerfile-collect
goos: linux
goarch: amd64
ids:
- support-bundle
snapshot:
name_template: SNAPSHOT-{{ .Commit }}