Skip to content

Commit

Permalink
Merge pull request karmada-io#5360 from zhzhuang-zju/setupgo
Browse files Browse the repository at this point in the history
use single source for go version
  • Loading branch information
karmada-bot authored Aug 13, 2024
2 parents e575711 + 64c44b0 commit 235ec91
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci-image-scanning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dockerhub-latest-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dockerhub-released-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 235ec91

Please sign in to comment.