From 51b8c6d92618f72df0c5bebd064358d1b71bcaf3 Mon Sep 17 00:00:00 2001 From: Sameer Date: Tue, 2 Dec 2025 15:12:46 +0530 Subject: [PATCH 1/2] Build kind image Signed-off-by: Sameer --- .github/workflows/test-gh.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test-gh.yml b/.github/workflows/test-gh.yml index 0e8548c1e..1dc575141 100644 --- a/.github/workflows/test-gh.yml +++ b/.github/workflows/test-gh.yml @@ -29,6 +29,19 @@ jobs: echo "Resolved latest k8s version to: $k8s_version" fi echo "k8s_version=$k8s_version" >> $GITHUB_ENV + - name: Build and push kind image for latest Kubernetes + run: | + k8s_version=v1.35.0-beta.0 + mkdir tmp && cd tmp + git clone https://github.com/kubernetes/kubernetes.git && cd kubernetes + git checkout v1.35.0-beta.0 + git clone https://github.com/kubernetes-sigs/kind.git && cd kind + kind build node-image --type=source $(pwd)/.. --image kindest/node:v1.35.0-beta.0 + docker tag kindest/node:v1.35.0-beta.0 \ + ghcr.io/${{ github.repository_owner }}/kindest-node:v1.35.0-beta.0 + docker push ghcr.io/${{ github.repository_owner }}/kindest-node:v1.35.0-beta.0 + cd $(pwd)/../../../ + rm -rf tmp && echo "Cleanup completed: Temporary directory 'tmp' has been removed." || echo "Cleanup failed: Could not remove 'tmp' directory." - name: Create Kind Cluster(k8s version ${{ env.k8s_version }}) run: | k8s_version=${{ env.k8s_version }} From 689ab2e57922ef3d8339c83932efca34510c2a26 Mon Sep 17 00:00:00 2001 From: Sameer Date: Tue, 2 Dec 2025 15:26:32 +0530 Subject: [PATCH 2/2] Login to ghcr Signed-off-by: Sameer --- .github/workflows/test-gh.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-gh.yml b/.github/workflows/test-gh.yml index 1dc575141..496255fee 100644 --- a/.github/workflows/test-gh.yml +++ b/.github/workflows/test-gh.yml @@ -20,6 +20,12 @@ jobs: uses: helm/kind-action@v1 with: install_only: true + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GHCR_PAT_PACKAGE_ALL }} - name: Resolve Kubernetes version id: resolve-k8s-version run: | @@ -38,8 +44,8 @@ jobs: git clone https://github.com/kubernetes-sigs/kind.git && cd kind kind build node-image --type=source $(pwd)/.. --image kindest/node:v1.35.0-beta.0 docker tag kindest/node:v1.35.0-beta.0 \ - ghcr.io/${{ github.repository_owner }}/kindest-node:v1.35.0-beta.0 - docker push ghcr.io/${{ github.repository_owner }}/kindest-node:v1.35.0-beta.0 + ghcr.io/${{ github.repository_owner }}/kindest/node:v1.35.0-beta.0 + docker push ghcr.io/${{ github.repository_owner }}/kindest/node:v1.35.0-beta.0 cd $(pwd)/../../../ rm -rf tmp && echo "Cleanup completed: Temporary directory 'tmp' has been removed." || echo "Cleanup failed: Could not remove 'tmp' directory." - name: Create Kind Cluster(k8s version ${{ env.k8s_version }})