From fcdcaf1e7e802e173303ef858ce056969a5eb299 Mon Sep 17 00:00:00 2001 From: bedirhangull Date: Tue, 17 Dec 2024 15:30:49 +0300 Subject: [PATCH] (cd/ci): updated to old version without sh script --- .github/workflows/release.yml | 31 +++---------------------------- .goreleaser.yml | 2 -- .krew.yaml | 18 +++++++++--------- 3 files changed, 12 insertions(+), 39 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78a5b4d..5d2f201 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 github-actions@github.com - 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/krew-release-bot@v0.0.38 \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index e561ad3..8022f00 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: diff --git a/.krew.yaml b/.krew.yaml index 182af2a..efb837a 100644 --- a/.krew.yaml +++ b/.krew.yaml @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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" @@ -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