From 264a899eb2444ab26766bea89eef5950517bf225 Mon Sep 17 00:00:00 2001 From: "Kelly, Sean" Date: Wed, 6 Jan 2021 07:00:09 -0500 Subject: [PATCH] customed krew repo --- .github/workflows/release.yml | 2 -- .krew.yaml | 20 ++++++++++---------- docs/book/src/release.md | 5 +++++ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5130aa1c..5c0ed626 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,5 +36,3 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GH_PAT }} - - name: Update new version in krew-index - uses: rajatjindal/krew-release-bot@v0.0.38 diff --git a/.krew.yaml b/.krew.yaml index d3af8185..45350b57 100644 --- a/.krew.yaml +++ b/.krew.yaml @@ -29,10 +29,10 @@ spec: {{addURIAndSha "https://github.com/fidelity/kconnect/releases/download/{{ .TagName }}/kconnect_linux_amd64.tar.gz" .TagName }} files: - from: "kconnect" - to: "kubectl-kconnect" + to: "kubectl-connect" - from: "LICENSE" to: "." - bin: kubectl-kconnect + bin: kubectl-connect - selector: matchLabels: os: linux @@ -40,10 +40,10 @@ spec: {{addURIAndSha "https://github.com/fidelity/kconnect/releases/download/{{ .TagName }}/kconnect_linux_arm.tar.gz" .TagName }} files: - from: "kconnect" - to: "kubectl-kconnect" + to: "kubectl-connect" - from: "LICENSE" to: "." - bin: kubectl-kconnect + bin: kubectl-connect - selector: matchLabels: os: linux @@ -51,10 +51,10 @@ spec: {{addURIAndSha "https://github.com/fidelity/kconnect/releases/download/{{ .TagName }}/kconnect_linux_arm64.tar.gz" .TagName }} files: - from: "kconnect" - to: "kubectl-kconnect" + to: "kubectl-connect" - from: "LICENSE" to: "." - bin: kubectl-kconnect + bin: kubectl-connect - selector: matchLabels: os: darwin @@ -62,10 +62,10 @@ spec: {{addURIAndSha "https://github.com/fidelity/kconnect/releases/download/{{ .TagName }}/kconnect_macos_amd64.tar.gz" .TagName }} files: - from: "kconnect" - to: "kubectl-kconnect" + to: "kubectl-connect" - from: "LICENSE" to: "." - bin: kubectl-kconnect + bin: kubectl-connect - selector: matchLabels: os: windows @@ -73,7 +73,7 @@ spec: {{addURIAndSha "https://github.com/fidelity/kconnect/releases/download/{{ .TagName }}/kconnect_windows_amd64.zip" .TagName }} files: - from: "kconnect.exe" - to: "kubectl-kconnect.exe" + to: "kubectl-connect.exe" - from: "LICENSE" to: "." - bin: kubectl-kconnect.exe \ No newline at end of file + bin: kubectl-connect.exe \ No newline at end of file diff --git a/docs/book/src/release.md b/docs/book/src/release.md index 706ba11a..bf7f714f 100644 --- a/docs/book/src/release.md +++ b/docs/book/src/release.md @@ -26,6 +26,11 @@ git push origin 0.3.0 6. Go to GitHub and check on the **goreleaser** [action](https://github.com/fidelity/kconnect/actions?query=workflow%3Agoreleaser). This action is what does the actual release. 7. Once the **goreleaser** action completes go to the [releases on GitHub](https://github.com/fidelity/kconnect/releases) and check the release is available. 8. Click **Edit** next to the release and tidy up the **Changelog** entries. If there are any breaking changes then a new markdown section should be added to the top that documents this. +9. Locally on your machine, run this command: +```bash +sudo docker run -v /path/to/repo/.krew.yaml:/tmp/template-file.yaml rajatjindal/krew-release-bot:v0.0.38 krew-release-bot template --tag 0.3.0 --template-file /tmp/template-file.yaml +``` +10. Take the output of this command (excluding logging output). Update this file https://github.com/fidelity/krew-index/blob.main/kconnect.yaml with the output you just obtainted (note: these manual steps will be automated in future) ## Implementation