Merge pull request #5360 from zhzhuang-zju/setupgo
use single source for go version
This commit is contained in:
commit
235ec911b1
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue