use single source for go version

Signed-off-by: zhzhuang-zju <m17799853869@163.com>
This commit is contained in:
zhzhuang-zju 2024-08-13 16:05:53 +08:00
parent 223e54e90d
commit 64c44b0323
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: