Skip to content

Commit

Permalink
Merge pull request #15 from bedirhangull/cd-ci-update-old
Browse files Browse the repository at this point in the history
(cd/ci): updated to old version without sh script
  • Loading branch information
bedirhangull authored Dec 17, 2024
2 parents 98ff45b + fcdcaf1 commit c177905
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 39 deletions.
31 changes: 3 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,41 +12,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v1
with:
go-version: '1.20'

- name: Ensure script is executable
run: |
chmod +x scripts/update-krew-yaml.sh
ls -l scripts/update-krew-yaml.sh
go-version: 1.20
- name: GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v1
with:
distribution: goreleaser
version: latest
args: release --clean
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run update script
run: |
pwd
ls -l scripts/
./scripts/update-krew-yaml.sh
- name: Commit and push updated Krew manifest
run: |
git config user.name github-actions
git config user.email [email protected]
git add deploy/krew/plugin.yaml
git commit -m "Update Krew manifest for release ${GITHUB_REF#refs/tags/}"
git push
- name: Update new version in krew-index
uses: rajatjindal/[email protected]
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ builds:
main: cmd/plugin/main.go
ldflags: -s -w
-X github.com/bedirhangull/kubectl-crashwatch/pkg/version.version=
hooks:
post: ./scripts/update-krew-yaml.sh
archives:
- id: kubectl-crashwatch
builds:
Expand Down
18 changes: 9 additions & 9 deletions .krew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ kind: Plugin
metadata:
name: crashwatch
spec:
version: "v1.0.8"
version: "v1.1.0"
platforms:
- selector:
matchLabels:
os: linux
arch: amd64
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_linux_amd64.tar.gz
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_linux_amd64.tar.gz
sha256: "8645becc48d2d7b5ded96d4f2c5abd1418d9b8fbd53202e3e0a7b2480e718f06"
files:
- from: "kubectl-crashwatch"
Expand All @@ -21,7 +21,7 @@ spec:
matchLabels:
os: linux
arch: "386"
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_linux_386.tar.gz
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_linux_386.tar.gz
sha256: "c3c88ef4cddc39d0169f58cdf0b8d1081c4dd7c959f2d8d62d7a822113ab6a3d"
files:
- from: "kubectl-crashwatch"
Expand All @@ -33,7 +33,7 @@ spec:
matchLabels:
os: linux
arch: arm64
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_linux_arm64.tar.gz
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_linux_arm64.tar.gz
sha256: "ba03c00ed6975e2c4fc8089d4c37d41159175c5e68c36eff86ef72b6366523df"
files:
- from: "kubectl-crashwatch"
Expand All @@ -45,7 +45,7 @@ spec:
matchLabels:
os: darwin
arch: amd64
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_darwin_amd64.tar.gz
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_darwin_amd64.tar.gz
sha256: "f5f15fe13a8758a3dc0dda13d59a3c7f8ab02bb3f159d51f901913dab487fe88"
files:
- from: "kubectl-crashwatch"
Expand All @@ -57,7 +57,7 @@ spec:
matchLabels:
os: darwin
arch: arm64
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_darwin_arm64.tar.gz
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_darwin_arm64.tar.gz
sha256: "94ecc4aef2e4dcbd4bd2c5f0e7fbcf332767ea1af0a9e0cd6415e9f9ca3925ba"
files:
- from: "kubectl-crashwatch"
Expand All @@ -69,7 +69,7 @@ spec:
matchLabels:
os: windows
arch: amd64
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_windows_amd64.zip
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_windows_amd64.zip
sha256: "93c3a76eff1483b179ab1b4f522f83f63f66c5aaa51cb4a1db79b8b518924c47"
files:
- from: "kubectl-crashwatch.exe"
Expand All @@ -81,7 +81,7 @@ spec:
matchLabels:
os: windows
arch: "386"
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.0.8/kubectl-crashwatch_windows_386.zip
uri: https://github.com/bedirhangull/kubectl-crashwatch/releases/download/v1.1.0/kubectl-crashwatch_windows_386.zip
sha256: "3b11f59d0675359d0c2713b18dcf600ff7595f05f1f527cb6856e4db64dcf677"
files:
- from: "kubectl-crashwatch.exe"
Expand All @@ -96,7 +96,7 @@ spec:
$ kubectl crashwatch
For additional options:
$ kubectl crashwatch --help
or visit the documentation at https://github.com/bedirhangull/kubectl-crashwatch/blob/v1.0.8/README.md
or visit the documentation at https://github.com/bedirhangull/kubectl-crashwatch/blob/v1.1.0/README.md
description: |
Crashwatch is a kubectl plugin designed to help users monitor and log all pods
that are in a CrashLoopBackOff state within a Kubernetes cluster. Users can also
Expand Down

0 comments on commit c177905

Please sign in to comment.