Skip to content

Commit 0de7bfb

Browse files
committed
update workflows
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 8ad59a8 commit 0de7bfb

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/vendor/
21
/azure-loganalytics-exporter
32
/example
43
/release-assets

.github/workflows/build-docker.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ jobs:
1818
with:
1919
swap-size-gb: 12
2020

21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version-file: 'go.mod'
24+
cache-dependency-path: "go.sum"
25+
check-latest: true
26+
2127
- name: Run Golangci lint
22-
uses: golangci/golangci-lint-action@v3
28+
uses: golangci/golangci-lint-action@v4
2329
with:
2430
version: latest
2531
args: --print-resources-usage
@@ -35,6 +41,7 @@ jobs:
3541
target: "final-static"
3642
suffix: ""
3743
latest: "auto"
44+
3845
runs-on: ubuntu-latest
3946
steps:
4047
- uses: actions/checkout@v4
@@ -44,6 +51,12 @@ jobs:
4451
with:
4552
swap-size-gb: 12
4653

54+
- uses: actions/setup-go@v5
55+
with:
56+
go-version-file: 'go.mod'
57+
cache-dependency-path: "go.sum"
58+
check-latest: true
59+
4760
- name: Docker meta
4861
id: docker_meta
4962
uses: docker/metadata-action@v5

.github/workflows/release-assets.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717

1818
- uses: actions/setup-go@v5
1919
with:
20-
go-version: '1.21'
20+
go-version-file: 'go.mod'
21+
cache-dependency-path: "go.sum"
2122
check-latest: true
2223

2324
- name: Build

0 commit comments

Comments
 (0)