Merge pull request #5360 from zhzhuang-zju/setupgo

use single source for go version
This commit is contained in:
karmada-bot 2024-08-13 23:23:32 +08:00 committed by GitHub
commit 235ec911b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,10 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build an image from Dockerfile
run: |
export VERSION="latest"

View File

@ -22,6 +22,10 @@ jobs:
# 0 indicates all history for all branches and tags.
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: login to DockerHub
uses: docker/login-action@v3
with:

View File

@ -17,6 +17,10 @@ jobs:
# 0 indicates all history for all branches and tags.
# for `git describe --tags` in Makefile.
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: login to DockerHub
uses: docker/login-action@v3
with:

View File

@ -29,6 +29,11 @@ jobs:
with:
fetch-depth: 0
- name: install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Set up Helm
uses: azure/setup-helm@v4
with: