Skip to content

Commit 4a06999

Browse files
authored
Add automation to bump kubectl rabbitmq in krew index (#448)
Template output by https://rajatjindal.com/tools/krew-release-bot-helper/. Relates #440
1 parent db113e5 commit 4a06999

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/release.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Release
2+
on:
3+
push:
4+
tags:
5+
- '*.*.*'
6+
7+
jobs:
8+
kubectl_rabbitmq:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Update new version in krew-index
12+
uses: rajatjindal/[email protected]
13+
with:
14+
krew_template_file: hack/rabbitmq.yaml

hack/rabbitmq.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: krew.googlecontainertools.github.com/v1alpha2
2+
kind: Plugin
3+
metadata:
4+
name: rabbitmq
5+
spec:
6+
homepage: https://github.com/rabbitmq/cluster-operator
7+
shortDescription: Manage RabbitMQ clusters
8+
version: v{{ .TagName }}
9+
description: |
10+
A plugin providing utilities to operate RabbitMQ clusters deployed
11+
by the RabbitMQ cluster operator.
12+
caveats: |
13+
This plugin requires the RabbitMQ cluster operator to be installed.
14+
To install the RabbitMQ cluster operator run `kubectl rabbitmq install-cluster-operator`.
15+
platforms:
16+
- selector:
17+
matchExpressions:
18+
- key: os
19+
operator: In
20+
values:
21+
- darwin
22+
- linux
23+
{{addURIAndSha "https://github.com/rabbitmq/cluster-operator/archive/{{ .TagName }}.tar.gz" .TagName }}
24+
bin: kubectl-rabbitmq
25+
files:
26+
- from: cluster-operator-*/bin/kubectl-rabbitmq
27+
to: .
28+
- from: cluster-operator-*/LICENSE.txt
29+
to: .

0 commit comments

Comments
 (0)