diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b366c4e030..b1b2541779 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,6 @@ defaults: shell: bash env: - K8S_VERSION: 1.23.4 - K8S_TIMEOUT: 75s HELM_CHART_DIR: deployments/helm-chart GIT_NAME: NGINX Kubernetes Team GIT_MAIL: kubernetes@nginx.com @@ -49,6 +47,7 @@ jobs: outputs: go_version: ${{ steps.vars.outputs.go_version }} go_path: ${{ steps.go.outputs.go_path }} + k8s_latest: ${{ steps.vars.outputs.k8s_latest }} steps: - name: Checkout Repository uses: actions/checkout@v3 @@ -65,6 +64,7 @@ jobs: id: vars run: | echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)" + echo "::set-output name=k8s_latest::$(grep -m1 'FROM kindest/node' diff --git a/.github/workflows/update-docker-images.yml b/.github/workflows/update-docker-images.yml index 232d58a5b1..0c6b64b32a 100644 --- a/.github/workflows/update-docker-images.yml +++ b/.github/workflows/update-docker-images.yml @@ -56,7 +56,7 @@ jobs: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" echo "::set-output name=sha_long::$(git rev-parse HEAD)" echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)" - echo "::set-output name=k8s_version::$(grep "K8S_VERSION:" .github/workflows/ci.yml | awk -F" " '{print $2}')" + echo "::set-output name=k8s_version::$(grep -m1 'FROM kindest/node'