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:
|
steps:
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: install Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
- name: Build an image from Dockerfile
|
- name: Build an image from Dockerfile
|
||||||
run: |
|
run: |
|
||||||
export VERSION="latest"
|
export VERSION="latest"
|
||||||
|
|
|
@ -22,6 +22,10 @@ jobs:
|
||||||
# 0 indicates all history for all branches and tags.
|
# 0 indicates all history for all branches and tags.
|
||||||
# for `git describe --tags` in Makefile.
|
# for `git describe --tags` in Makefile.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: install Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
- name: login to DockerHub
|
- name: login to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -17,6 +17,10 @@ jobs:
|
||||||
# 0 indicates all history for all branches and tags.
|
# 0 indicates all history for all branches and tags.
|
||||||
# for `git describe --tags` in Makefile.
|
# for `git describe --tags` in Makefile.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: install Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
- name: login to DockerHub
|
- name: login to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -29,6 +29,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: install Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
- name: Set up Helm
|
- name: Set up Helm
|
||||||
uses: azure/setup-helm@v4
|
uses: azure/setup-helm@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue