-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(krew): enable release automation (#11)
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: release | |
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
- 'v*.*.*' | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
|
@@ -19,3 +19,5 @@ jobs: | |
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Update new version in krew-index | ||
uses: rajatjindal/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: kuota-calc | ||
spec: | ||
version: {{ .TagName }} | ||
homepage: https://github.com/postfinance/kuota-calc | ||
shortDescription: Calculate needed quota to perform rolling updates. | ||
description: | | ||
This plugin calculates the maximum needed resource quota for you. The deployment | ||
strategy, replicas and all containers are taken into account to calculate the | ||
resources needed in order to be able to perform a rolling update and still have | ||
enough resource quota. | ||
caveats: | | ||
* Currently kuota-calc supports apps/v1.Deployment, apps/v1.StatefulSet, | ||
apps/v1.DaemonSet, batch/v1.CronJob, batch/v1.Job and v1.Pod resources | ||
platforms: | ||
- selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
{{ addURIAndSha "https://github.com/postfinance/kuota-calc/releases/download/{{ .TagName}}/kuota-calc_darwin_x86_64.zip" .TagName }} | ||
bin: kuota-calc | ||
- selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
{{ addURIAndSha "https://github.com/postfinance/kuota-calc/releases/download/{{ .TagName}}/kuota-calc_linux_x86_64.zip" .TagName }} | ||
bin: kuota-calc | ||
- selector: | ||
matchLabels: | ||
os: windows | ||
arch: amd64 | ||
{{ addURIAndSha "https://github.com/postfinance/kuota-calc/releases/download/{{ .TagName}}/kuota-calc_windows.zip" .TagName }} | ||
bin: kuota-calc.exe |