Skip to content

Commit 428db22

Browse files
authored
Merge pull request #197 from replicatedhq/laverya/automate-krew-releases
automate krew releases
2 parents f6a5d40 + 8bc627d commit 428db22

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.github/workflows/build-test-deploy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,13 @@ jobs:
8686
args: release --rm-dist --config deploy/.goreleaser.yaml
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
90+
91+
- name: Update new preflight version in krew-index
92+
uses: rajatjindal/[email protected]
93+
with:
94+
krew_template_file: deploy/krew/preflight.yaml
95+
- name: Update new support-bundle version in krew-index
96+
uses: rajatjindal/[email protected]
97+
with:
98+
krew_template_file: deploy/krew/support-bundle.yaml

deploy/krew/preflight.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ kind: Plugin
33
metadata:
44
name: preflight
55
spec:
6-
version: "v0.9.14"
6+
version: {{ .TagName }}
77
platforms:
88
- selector:
99
matchLabels:
1010
os: linux
1111
arch: amd64
12-
uri: https://github.com/replicatedhq/troubleshoot/releases/download/v0.9.14/preflight_linux_amd64.tar.gz
13-
sha256: "25b062760a23e546d22f1687fd460095d61f9fd4a210eec5cc4bacb648b043da"
12+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight_linux_amd64.tar.gz" .TagName }}
1413
files:
1514
- from: preflight
1615
to: .
@@ -21,8 +20,7 @@ spec:
2120
matchLabels:
2221
os: darwin
2322
arch: amd64
24-
uri: https://github.com/replicatedhq/troubleshoot/releases/download/v0.9.14/preflight_darwin_amd64.tar.gz
25-
sha256: "00e21d1fe38fd8373136a064e15586b3d4eab49a4d3617167680eea27ebbcc65"
23+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight_darwin_amd64.tar.gz" .TagName }}
2624
files:
2725
- from: preflight
2826
to: .
@@ -33,8 +31,7 @@ spec:
3331
matchLabels:
3432
os: windows
3533
arch: amd64
36-
uri: https://github.com/replicatedhq/troubleshoot/releases/download/v0.9.14/preflight_windows_amd64.zip
37-
sha256: "1b10f6a7ca73722c458a44afb9e3a91af2d41681d0e0ea16483413691e363460"
34+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/preflight.exe_windows_amd64.zip" .TagName }}
3835
files:
3936
- from: preflight.exe
4037
to: .

deploy/krew/support-bundle.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ kind: Plugin
33
metadata:
44
name: support-bundle
55
spec:
6-
version: "v0.9.14"
6+
version: {{ .TagName }}
77
platforms:
88
- selector:
99
matchLabels:
1010
os: linux
1111
arch: amd64
12-
uri: https://github.com/replicatedhq/troubleshoot/releases/download/v0.9.14/support-bundle_linux_amd64.tar.gz
13-
sha256: "81ed16f3e423535f026909df2823f5da9909ec5762a150c76fde94d985d101c7"
12+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/support-bundle_linux_amd64.tar.gz" .TagName }}
1413
files:
1514
- from: support-bundle
1615
to: .
@@ -21,8 +20,7 @@ spec:
2120
matchLabels:
2221
os: darwin
2322
arch: amd64
24-
uri: https://github.com/replicatedhq/troubleshoot/releases/download/v0.9.14/support-bundle_darwin_amd64.tar.gz
25-
sha256: "84d2cd6b3d77ed2e8e83cda6f79b553e443acb2cc7cb0099be2a73934dac46f4"
23+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/support-bundle_darwin_amd64.tar.gz" .TagName }}
2624
files:
2725
- from: support-bundle
2826
to: .
@@ -33,8 +31,7 @@ spec:
3331
matchLabels:
3432
os: windows
3533
arch: amd64
36-
uri: https://github.com/replicatedhq/troubleshoot/releases/download/v0.9.14/support-bundle_windows_amd64.zip
37-
sha256: "b968d9168ce97c7dc43cb4e043a8d6762c1e231d68f90826a019571f8d450719"
34+
{{addURIAndSha "https://github.com/replicatedhq/troubleshoot/releases/download/{{ .TagName }}/support-bundle.exe_windows_amd64.zip" .TagName }}
3835
files:
3936
- from: support-bundle.exe
4037
to: .

0 commit comments

Comments
 (0)