Skip to content

Commit 4440ab5

Browse files
committed
update workflows
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent d4390e2 commit 4440ab5

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
/vendor/
21
/azure-janitor
32
/release-assets

.github/workflows/build-docker.yaml

Lines changed: 19 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,12 @@ jobs:
3541
target: "final-static"
3642
suffix: ""
3743
latest: "auto"
44+
45+
- Dockerfile: Dockerfile
46+
target: "final-azcli"
47+
suffix: "-azcli"
48+
latest: false
49+
3850
runs-on: ubuntu-latest
3951
steps:
4052
- uses: actions/checkout@v4
@@ -44,6 +56,12 @@ jobs:
4456
with:
4557
swap-size-gb: 12
4658

59+
- uses: actions/setup-go@v5
60+
with:
61+
go-version-file: 'go.mod'
62+
cache-dependency-path: "go.sum"
63+
check-latest: true
64+
4765
- name: Docker meta
4866
id: docker_meta
4967
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)