Skip to content

Commit

Permalink
customed krew repo
Browse files Browse the repository at this point in the history
  • Loading branch information
seankelly001 committed Jan 6, 2021
1 parent d7a6b13 commit 264a899
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
20 changes: 10 additions & 10 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,51 +29,51 @@ 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
arch: arm
{{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
arch: arm64
{{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
arch: amd64
{{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
arch: amd64
{{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
bin: kubectl-connect.exe
5 changes: 5 additions & 0 deletions docs/book/src/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 264a899

Please sign in to comment.