-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update krew index manifest update added to ci
- Loading branch information
1 parent
9910043
commit b98724e
Showing
6 changed files
with
110 additions
and
61 deletions.
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: goreleaser | ||
name: release | ||
|
||
on: | ||
push: | ||
push: | ||
tags: | ||
- '*' | ||
- "*" | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -12,29 +12,29 @@ jobs: | |
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Set up Go | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- | ||
name: Login to GitHub Container Registry | ||
go-version: 1.19 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- | ||
name: Run GoReleaser | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Update krew-index | ||
uses: rajatjindal/[email protected] | ||
with: | ||
krew_template_file: .krew/tail.yaml |
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
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 |
---|---|---|
|
@@ -13,14 +13,25 @@ builds: | |
- linux | ||
goarch: | ||
- amd64 | ||
- arm | ||
- arm64 | ||
goamd64: | ||
- v1 | ||
- v2 | ||
- v3 | ||
env: | ||
- CGO_ENABLED=0 | ||
ldflags: | ||
- -s -w | ||
- -X github.com/boz/tail/version.Version={{.Tag}} | ||
- -X github.com/boz/tail/version.Commit={{.ShortCommit}} | ||
- -X github.com/boz/tail/version.Date={{.Date}} | ||
- -X github.com/boz/tail/version.BuiltBy=GoReleaser | ||
- -X github.com/boz/tail/version.OsName={{.Os}} | ||
- -X github.com/boz/tail/version.PlatformName={{.Arch}} | ||
|
||
archives: | ||
- | ||
name_template: '{{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' | ||
|
||
brews: | ||
- tap: | ||
|
@@ -34,47 +45,6 @@ brews: | |
homepage: "https://github.com/boz/kail" | ||
description: "kubernetes tail - pod log viewer" | ||
|
||
krews: | ||
- name: tail | ||
goarm: 6 | ||
goamd64: v2 | ||
index: | ||
owner: boz | ||
name: krew-index | ||
branch: master | ||
commit_author: | ||
name: boz | ||
email: [email protected] | ||
homepage: "https://github.com/boz/kail" | ||
description: |- | ||
Kail https://github.com/boz/kail - "Just show me the logs" | ||
Stream logs from all matched containers of all matched pods. Match pods by service, | ||
replicaset, deployment, and others. Adjusts to a changing cluster - pods are | ||
added and removed from logging as they fall in or out of the selection. | ||
Documentation: | ||
See https://github.com/boz/kail or | ||
$ kubectl tail --help | ||
Usage: | ||
# match all pods | ||
$ kubectl tail | ||
# match pods in the 'frontend' namespace | ||
$ kubectl tail --ns staging | ||
# match pods belonging to a replicaset named 'workers' in any namespace. | ||
$ kubectl tail --rs workers | ||
# match pods belonging to the replicaset named 'workers' only in the 'staging' namespace | ||
$ kubectl tail --rs staging/workers | ||
# match pods belonging to both the service "frontend" and the deployment "webapp" | ||
$ kubectl tail --svc frontend --deploy webapp | ||
short_description: "Stream logs from multiple pods and containers using simple, dynamic source selection." | ||
|
||
checksum: | ||
name_template: "checksums.txt" | ||
snapshot: | ||
|
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,82 @@ | ||
apiVersion: krew.googlecontainertools.github.com/v1alpha2 | ||
kind: Plugin | ||
metadata: | ||
name: tail | ||
spec: | ||
version: "{{ .TagName }}" | ||
platforms: | ||
- {{addURIAndSha "https://github.com/boz/kail/releases/download/{{ .TagName }}/kail_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }} | ||
selector: | ||
matchLabels: | ||
os: darwin | ||
arch: arm64 | ||
bin: kail | ||
files: | ||
- from: "kail" | ||
to: "." | ||
- from: LICENSE.txt | ||
to: . | ||
- {{addURIAndSha "https://github.com/boz/kail/releases/download/{{ .TagName }}/kail_{{ .TagName }}_darwin_amd64v2.tar.gz" .TagName }} | ||
selector: | ||
matchLabels: | ||
os: darwin | ||
arch: amd64 | ||
bin: kail | ||
files: | ||
- from: "kail" | ||
to: "." | ||
- from: LICENSE.txt | ||
to: . | ||
- {{addURIAndSha "https://github.com/boz/kail/releases/download/{{ .TagName }}/kail_{{ .TagName }}_linux_arm64.tar.gz" .TagName }} | ||
selector: | ||
matchLabels: | ||
os: linux | ||
arch: arm64 | ||
bin: kail | ||
files: | ||
- from: "kail" | ||
to: "." | ||
- from: LICENSE.txt | ||
to: . | ||
- {{addURIAndSha "https://github.com/boz/kail/releases/download/{{ .TagName }}/kail_{{ .TagName }}_linux_amd64v2.tar.gz" .TagName }} | ||
selector: | ||
matchLabels: | ||
os: linux | ||
arch: amd64 | ||
bin: kail | ||
files: | ||
- from: "kail" | ||
to: "." | ||
- from: LICENSE.txt | ||
to: . | ||
homepage: https://github.com/boz/kail | ||
shortDescription: Stream logs from multiple pods and containers using simple, dynamic source selection. | ||
description: |- | ||
Kail https://github.com/boz/kail - "Just show me the logs" | ||
Stream logs from all matched containers of all matched pods. Match pods by service, | ||
replicaset, deployment, and others. Adjusts to a changing cluster - pods are | ||
added and removed from logging as they fall in or out of the selection. | ||
Documentation: | ||
See https://github.com/boz/kail or | ||
$ kubectl tail --help | ||
Usage: | ||
# match all pods | ||
$ kubectl tail | ||
# match pods in the 'frontend' namespace | ||
$ kubectl tail --ns staging | ||
# match pods belonging to a replicaset named 'workers' in any namespace. | ||
$ kubectl tail --rs workers | ||
# match pods belonging to the replicaset named 'workers' only in the 'staging' namespace | ||
$ kubectl tail --rs staging/workers | ||
# match pods belonging to both the service "frontend" and the deployment "webapp" | ||
$ kubectl tail --svc frontend --deploy webapp |
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
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