Skip to content

Commit

Permalink
improve go version selction and use go cache in workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Jan 24, 2024
1 parent 3dce11c commit 4702a2c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/vendor/
/azure-resourcemanager-exporter*
/release-assets
5 changes: 5 additions & 0 deletions .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
with:
swap-size-gb: 12

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-assets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
go-version-file: go.mod
cache-dependency-path: go.sum

- name: Build
run: |
Expand Down

0 comments on commit 4702a2c

Please sign in to comment.