Skip to content

Commit 51aed73

Browse files
authored
ci: remove krew-index update step on dev/v0.0.33-windows (#2390)
The krew-release-bot step in goreleaser.yaml triggers on every tag pushed from this branch, including pre-release tags like `v0.0.33-windows-rc.2`, opening spurious PRs against [krew-index](https://github.com/kubernetes-sigs/krew-index) (e.g. #5787). Main has #2107 which gates the step on final release tags, but this dev branch forked before that landed. Since this branch only produces pre-release/windows-dev tags that should never publish to krew, removing the step entirely is the simplest fix. The new tag `v0.0.33-windows-rc.2` already points to a commit with this change applied, so the in-flight release is unaffected. --------- Signed-off-by: Mathew Merrick <matmerr@microsoft.com>
1 parent ac23264 commit 51aed73

2 files changed

Lines changed: 0 additions & 20 deletions

File tree

.github/workflows/goreleaser.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,3 @@ jobs:
4848
args: release --clean
4949
env:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
- name: Update new version in krew-index
52-
if: github.repository_owner == 'microsoft'
53-
uses: rajatjindal/krew-release-bot@v0.0.47

.github/workflows/release-validation.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ jobs:
4242
- name: Setup kind cluster
4343
uses: helm/kind-action@v1.12.0
4444

45-
# krew does not support installing a specific verison
46-
# so if this step fails it means there was something wrong
47-
# with the krew index update as part of the release
48-
- name: Test krew install retina
49-
run: |
50-
(
51-
set -x; cd "$(mktemp -d)" &&
52-
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
53-
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
54-
KREW="krew-${OS}_${ARCH}" &&
55-
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
56-
tar zxvf "${KREW}.tar.gz" &&
57-
./"${KREW}" install krew
58-
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
59-
kubectl krew install retina
60-
)
61-
6245
- name: Check Go package version
6346
run: |
6447
TAG=${{ env.TAG }}

0 commit comments

Comments
 (0)