ci: Use an env variable to ensure all jobs use the same Go version
@@ -2,6 +2,7 @@ name: Inspektor Gadget CI
env:
REGISTRY: ghcr.io
CONTAINER_REPO: ${{ github.repository }}
+ GO_VERSION: 1.18.3
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
@@ -29,7 +30,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
id: go
- name: Check if generated files are updated
@@ -46,7 +47,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
id: go
- name: Install debian packages
@@ -79,7 +80,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
id: go
- name: Install debian packages
@@ -136,7 +137,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
id: go
- name: Install debian packages
@@ -340,7 +341,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
- name: Build example binaries
run: |
@@ -357,7 +358,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
id: go
- name: Install debian packages
@@ -381,7 +382,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
id: go
- name: Install debian packages
@@ -474,7 +475,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
- name: Authenticate and set ARO cluster context
# NOTE: This action generates the Kubernetes config file in the current
@@ -514,7 +515,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
- go-version: 1.18.3
+ go-version: ${{ env.GO_VERSION }}
cache: true
- name: Setup Minikube
uses: manusa/actions-setup-minikube@v2.4.3
