diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index aef5898e..877d30d8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: bazel-version: @@ -37,7 +37,7 @@ jobs: chmod +x "${TOOLS_DIR}/bin/bazel" curl -Ls -o "${TOOLS_DIR}/bin/buildifier" "https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier" chmod +x "${TOOLS_DIR}/bin/buildifier" - curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64" + curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.29.0/kind-linux-amd64" chmod +x "${TOOLS_DIR}/bin/kind" echo "${TOOLS_DIR}/bin" >> $GITHUB_PATH - name: Setup kind cluster diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 026626f4..4a632e12 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 env: USE_BAZEL_VERSION: 6.5.0 steps: @@ -32,7 +32,7 @@ jobs: chmod +x "${TOOLS_DIR}/bin/bazel" curl -Ls -o "${TOOLS_DIR}/bin/buildifier" "https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier" chmod +x "${TOOLS_DIR}/bin/buildifier" - curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64" + curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.29.0/kind-linux-amd64" chmod +x "${TOOLS_DIR}/bin/kind" echo "${TOOLS_DIR}/bin" >> $GITHUB_PATH - name: Setup kind cluster diff --git a/create_kind_cluster.sh b/create_kind_cluster.sh index 60abba33..3ec944fa 100755 --- a/create_kind_cluster.sh +++ b/create_kind_cluster.sh @@ -18,13 +18,14 @@ reg_name='kind-registry' reg_port='5000' running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" if [ "${running}" != 'true' ]; then + docker container rm "${reg_name}" 2>/dev/null || true docker run \ -d --restart=always -p "${reg_port}:5000" --name "${reg_name}" \ registry:2 fi # create a cluster with the local registry enabled in containerd -cat <