diff --git a/.github/workflows/build-arm64-image.yaml b/.github/workflows/build-arm64-image.yaml index edecd38932d..380709faa36 100644 --- a/.github/workflows/build-arm64-image.yaml +++ b/.github/workflows/build-arm64-image.yaml @@ -18,6 +18,9 @@ concurrency: group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true +env: + GO_VERSION: '1.20.5' + jobs: build: name: Build arm64 @@ -31,6 +34,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false diff --git a/.github/workflows/build-kube-ovn-test.yaml b/.github/workflows/build-kube-ovn-test.yaml index 6ce88046442..e310e9abb2f 100644 --- a/.github/workflows/build-kube-ovn-test.yaml +++ b/.github/workflows/build-kube-ovn-test.yaml @@ -1,6 +1,9 @@ name: Build Test on: workflow_dispatch +env: + GO_VERSION: '' + jobs: build: name: Build Test @@ -10,6 +13,7 @@ jobs: - uses: docker/setup-buildx-action@v2 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false diff --git a/.github/workflows/build-windows.yaml b/.github/workflows/build-windows.yaml index d80fd92b43e..8d89b4e49ea 100644 --- a/.github/workflows/build-windows.yaml +++ b/.github/workflows/build-windows.yaml @@ -22,6 +22,7 @@ concurrency: cancel-in-progress: true env: + GO_VERSION: '1.20.5' GOSEC_VERSION: '2.15.0' jobs: @@ -35,6 +36,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -177,6 +179,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false diff --git a/.github/workflows/build-x86-image.yaml b/.github/workflows/build-x86-image.yaml index 717e18a9498..8e79597ad39 100644 --- a/.github/workflows/build-x86-image.yaml +++ b/.github/workflows/build-x86-image.yaml @@ -21,6 +21,7 @@ concurrency: cancel-in-progress: true env: + GO_VERSION: '1.20.5' GOSEC_VERSION: '2.15.0' HELM_VERSION: v3.11.3 SUBMARINER_VERSION: '0.14.3' @@ -77,6 +78,7 @@ jobs: - uses: docker/setup-buildx-action@v2 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -208,6 +210,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -241,6 +244,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -312,6 +316,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -461,6 +466,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -606,6 +612,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -866,6 +873,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1009,6 +1017,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1252,6 +1261,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1340,6 +1350,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1422,6 +1433,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1574,6 +1586,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1686,6 +1699,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -1962,6 +1976,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false @@ -2053,6 +2068,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: ${{ env.E2E_DIR }}/go.mod check-latest: true cache: false diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8a717a59cb0..0380365be2c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,6 +18,9 @@ concurrency: group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true +env: + GO_VERSION: '' + jobs: analyze: name: Analyze @@ -42,6 +45,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 0e1438d8e3e..69e014c8307 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -12,6 +12,9 @@ concurrency: group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true +env: + GO_VERSION: '' + jobs: golangci: name: lint @@ -20,6 +23,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false diff --git a/.github/workflows/scheduled-e2e.yaml b/.github/workflows/scheduled-e2e.yaml index e7d1bcf12b1..b1137cfc4a8 100644 --- a/.github/workflows/scheduled-e2e.yaml +++ b/.github/workflows/scheduled-e2e.yaml @@ -10,6 +10,7 @@ concurrency: cancel-in-progress: true env: + GO_VERSION: '1.20.5' HELM_VERSION: v3.11.3 SUBMARINER_VERSION: '0.14.3' @@ -44,6 +45,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -130,6 +132,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -212,6 +215,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -351,6 +355,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -426,6 +431,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -705,6 +711,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -775,6 +782,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -844,6 +852,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -976,6 +985,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -1063,6 +1073,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -1145,6 +1156,7 @@ jobs: - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -1303,6 +1315,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false @@ -1374,6 +1387,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v4 with: + go-version: ${{ env.GO_VERSION || '' }} go-version-file: go.mod check-latest: true cache: false