* start upgrade to 1.19.4 Signed-off-by: James Strong <james.strong@chainguard.dev> * add matrix to image test-image Signed-off-by: James Strong <james.strong@chainguard.dev> * update to alpine 3.17 Signed-off-by: James Strong <james.strong@chainguard.dev> * remove need for curl Signed-off-by: James Strong <james.strong@chainguard.dev> Signed-off-by: James Strong <james.strong@chainguard.dev>
40 lines
1,012 B
YAML
40 lines
1,012 B
YAML
name: kubectl plugin
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "cmd/plugin/**"
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write # for goreleaser/goreleaser-action
|
|
|
|
jobs:
|
|
release-plugin:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 # v3.2.0
|
|
with:
|
|
go-version: 1.19.4
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.0.0
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Update new version in krew-index
|
|
uses: rajatjindal/krew-release-bot@92da038bbf995803124a8e50ebd438b2f37bbbb0 # v0.0.43
|
|
with:
|
|
krew_template_file: cmd/plugin/krew.yaml
|