Skip to content

Commit c28aab0

Browse files
Revert "Update .goreleaser.yaml" (#1886)
* Revert "Update .goreleaser.yaml (#1884)" This reverts commit ec76547. * Update preflight.yaml * Update .goreleaser.yaml
1 parent ec76547 commit c28aab0

File tree

2 files changed

+48
-10
lines changed

2 files changed

+48
-10
lines changed

deploy/.goreleaser.yaml

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ project_name: troubleshoot
33

44
release:
55
prerelease: auto
6+
mode: keep-existing
67

78
builds:
89
- id: preflight
@@ -13,8 +14,6 @@ builds:
1314
ignore:
1415
- goos: windows
1516
goarch: arm
16-
- goos: darwin
17-
goarch: arm
1817
ldflags:
1918
- -s -w
2019
- -X github.com/replicatedhq/troubleshoot/pkg/version.version={{ .Version }}
@@ -38,8 +37,6 @@ builds:
3837
ignore:
3938
- goos: windows
4039
goarch: arm
41-
- goos: darwin
42-
goarch: arm
4340
ldflags:
4441
- -s -w
4542
- -X github.com/replicatedhq/troubleshoot/pkg/version.version={{ .Version }}
@@ -95,7 +92,39 @@ archives:
9592
dst: .
9693
strip_parent: true
9794

98-
95+
- id: preflight-universal
96+
ids: [preflight-universal]
97+
formats: [tar.gz]
98+
name_template: "preflight_{{ .Os }}_{{ .Arch }}"
99+
files:
100+
- licence*
101+
- LICENCE*
102+
- license*
103+
- LICENSE*
104+
- readme*
105+
- README*
106+
- changelog*
107+
- CHANGELOG*
108+
- src: "sbom/assets/*"
109+
dst: .
110+
strip_parent: true
111+
112+
- id: support-bundle-universal
113+
ids: [support-bundle-universal]
114+
formats: [tar.gz]
115+
name_template: "support-bundle_{{ .Os }}_{{ .Arch }}"
116+
files:
117+
- licence*
118+
- LICENCE*
119+
- license*
120+
- LICENSE*
121+
- readme*
122+
- README*
123+
- changelog*
124+
- CHANGELOG*
125+
- src: "sbom/assets/*"
126+
dst: .
127+
strip_parent: true
99128

100129
dockers:
101130
- dockerfile: ./deploy/Dockerfile.troubleshoot
@@ -119,11 +148,20 @@ dockers:
119148
- preflight
120149
skip_push: true
121150

122-
151+
universal_binaries:
152+
- id: preflight-universal
153+
ids: [preflight] # refers to the build id above
154+
replace: true
155+
name_template: preflight
156+
157+
- id: support-bundle-universal
158+
ids: [support-bundle] # refers to the build id above
159+
replace: true
160+
name_template: support-bundle
123161

124162
brews:
125163
- name: preflight
126-
ids: [preflight]
164+
ids: [preflight, preflight-universal]
127165
homepage: https://docs.replicated.com/reference/preflight-overview/
128166
description: "A preflight checker and conformance test for Kubernetes clusters."
129167
repository:
@@ -133,7 +171,7 @@ brews:
133171
directory: HomebrewFormula
134172
install: bin.install "preflight"
135173
- name: support-bundle
136-
ids: [support-bundle]
174+
ids: [support-bundle, support-bundle-universal]
137175
homepage: https://docs.replicated.com/reference/support-bundle-overview/
138176
description: "Collect and redact support bundles for Kubernetes clusters."
139177
repository:

deploy/krew/preflight.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
matchLabels:
4343
os: darwin
4444
arch: amd64
45-
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight_darwin_amd64.tar.gz" .TagName }}
45+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight_darwin_all.tar.gz" .TagName }}
4646
files:
4747
- from: preflight
4848
to: .
@@ -53,7 +53,7 @@ spec:
5353
matchLabels:
5454
os: darwin
5555
arch: arm64
56-
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight_darwin_arm64.tar.gz" .TagName }}
56+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight_darwin_all.tar.gz" .TagName }}
5757
files:
5858
- from: preflight
5959
to: .

0 commit comments

Comments
 (0)