Skip to content

Commit

Permalink
add krew release bot, homebrew binary installs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Hamilton committed Jul 9, 2020
1 parent b82b7c0 commit 8bfe14c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/kubectl-tap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.SOLUBLE_KUBETAP_BOT_TOKEN }}
-
-
name: Update homebrew-tap
if: "!contains(github.ref, '-')" # skip RCs
uses: mislav/bump-homebrew-formula-action@v1.6
Expand All @@ -130,3 +130,7 @@ jobs:
homebrew-tap: soluble-ai/homebrew-kubetap
env:
COMMITTER_TOKEN: ${{ secrets.SOLUBLE_KUBETAP_BOT_TOKEN }}
# -
# name: Update krew plugin
# if: "!contains(github.ref, '-')" # skip RCs
# uses: rajatjindal/krew-release-bot@v0.0.38
20 changes: 19 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ archives:
windows: Windows
386: i386
amd64: x86_64
name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'kubetap_checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
Expand All @@ -54,3 +55,20 @@ changelog:
- '^test:'
- '^scripts:'
- '^proxies:'
brews:
-
name: Kubetap
tap:
owner: soluble-ai
name: homebrew-kubetap
skip_upload: false
download_strategy: CurlDownloadStrategy
caveats: 'kubetap is best invoked as: $ kubectl tap'
homepage: 'https://github.com/soluble-ai/kubetap'
description: 'Kubetap is a kubectl plugin to interactively proxy Kubernetes Services with ease'
custom_block: |
head "https://github.com/soluble-ai/kubetap.git"
test: |
system "#{bin}/kubectl-tap version"
install: |
bin.install "./kubectl-tap"
36 changes: 36 additions & 0 deletions .krew.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: tap
spec:
version: {{ .TagName }}
homepage: https://soluble-ai.github.io/kubetap/
shortDescription: "Interactively proxy Kubernetes Services with ease"
description: |
Interactively proxy Kubernetes Services by deploying
intercepting proxy sidecars.
platforms:
- selector:
matchLabels:
os: darwin
arch: amd64
{{ addURIAndSha "https://github.com/soluble-ai/kubetap/releases/download/{{ .TagName }}/kubetap_{{ .TagName }}_Darwin_x86_64.tar.gz" .TagName }}
bin: kubectl-tap
- selector:
matchLabels:
os: windows
arch: amd64
{{ addURIAndSha "https://github.com/soluble-ai/kubetap/releases/download/{{ .TagName }}/kubetap_{{ .TagName }}_Windows_x86_64.zip" .TagName }}
bin: kubectl-tap.exe
- selector:
matchLabels:
os: linux
arch: amd64
{{ addURIAndSha "https://github.com/soluble-ai/kubetap/releases/download/{{ .TagName }}/kubetap_{{ .TagName }}_Linux_x86_64.tar.gz" .TagName }}
bin: kubectl-tap
- selector:
matchLabels:
os: linux
arch: arm64
{{ addURIAndSha "https://github.com/soluble-ai/kubetap/releases/download/{{ .TagName }}/kubetap_{{ .TagName }}_Linux_arm64.tar.gz" .TagName }}
bin: kubectl-tap

0 comments on commit 8bfe14c

Please sign in to comment.