Skip to content

Commit c1ec1d7

Browse files
mayastor-borsniladrih
mayastor-bors
andcommitted
chore(bors): merge pull request #544
544: ci: add krew-release-bot for automated krew index updates r=niladrih a=niladrih Cherry-pick the commit(s) from PR 524 into release/2.7 branch Co-authored-by: Niladri Halder <niladri.halder26@gmail.com>
2 parents e21d87f + 1592c3b commit c1ec1d7

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

.github/workflows/publish-release-artifacts.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ jobs:
1919
./scripts/github/release-artifacts.sh --tag "${{ github.event.release.tag_name }}" --repo-org "${{ github.repository_owner }}" --upload "$repos" upload
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.ORG_CI_GITHUB }}
22+
- name: Update krew index
23+
uses: rajatjindal/krew-release-bot@v0.0.46

.github/workflows/release-binaries.yml

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
include:
20+
# NOTE: Update the .krew.yaml file (if required) when making changes here.
2021
- os: ubuntu-latest
2122
target: linux-musl
2223
arch: x86_64
@@ -63,6 +64,7 @@ jobs:
6364
nix-build -A utils.release.${{ matrix.arch }}.${{ matrix.target }}.kubectl-plugin --arg incremental false ${{ matrix.system }}
6465
- name: Archive executable
6566
run: |
67+
# NOTE: Update the .krew.yaml file (if required) when making changes here.
6668
tar -czvf kubectl-mayastor-${{ matrix.arch }}-${{ matrix.target }}.tar.gz LICENSE -C result/bin kubectl-mayastor${{ matrix.suffix }}
6769
- uses: actions/upload-artifact@v4
6870
with:

.krew.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apiVersion: krew.googlecontainertools.github.com/v1alpha2
2+
kind: Plugin
3+
metadata:
4+
name: mayastor
5+
spec:
6+
version: {{ .TagName }}
7+
homepage: https://openebs.io/docs/
8+
shortDescription: Provides commands for OpenEBS Mayastor.
9+
description: |
10+
This plugin allows you to manage Mayastor volumes and upgrades.
11+
platforms:
12+
- selector:
13+
matchLabels:
14+
os: darwin
15+
arch: amd64
16+
{{addURIAndSha "https://github.com/openebs/mayastor-extensions/releases/download/{{ .TagName }}/kubectl-mayastor-x86_64-apple-darwin.tar.gz" .TagName }}
17+
bin: kubectl-mayastor
18+
- selector:
19+
matchLabels:
20+
os: darwin
21+
arch: arm64
22+
{{addURIAndSha "https://github.com/openebs/mayastor-extensions/releases/download/{{ .TagName }}/kubectl-mayastor-aarch64-apple-darwin.tar.gz" .TagName }}
23+
bin: kubectl-mayastor
24+
- selector:
25+
matchLabels:
26+
os: linux
27+
arch: amd64
28+
{{addURIAndSha "https://github.com/openebs/mayastor-extensions/releases/download/{{ .TagName }}/kubectl-mayastor-x86_64-linux-musl.tar.gz" .TagName }}
29+
bin: kubectl-mayastor
30+
- selector:
31+
matchLabels:
32+
os: linux
33+
arch: arm64
34+
{{addURIAndSha "https://github.com/openebs/mayastor-extensions/releases/download/{{ .TagName }}/kubectl-mayastor-aarch64-linux-musl.tar.gz" .TagName }}
35+
bin: kubectl-mayastor
36+
- selector:
37+
matchLabels:
38+
os: windows
39+
arch: amd64
40+
{{addURIAndSha "https://github.com/openebs/mayastor-extensions/releases/download/{{ .TagName }}/kubectl-mayastor-x86_64-windows-gnu.tar.gz" .TagName }}
41+
bin: kubectl-mayastor.exe

0 commit comments

Comments
 (0)