Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Feb 17, 2024
1 parent dd980a8 commit 4eaa87e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/vendor/
/azure-resourcegraph-exporter
/example
/release-assets
15 changes: 14 additions & 1 deletion .github/workflows/build-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ jobs:
with:
swap-size-gb: 12

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

- name: Run Golangci lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --print-resources-usage
Expand All @@ -35,6 +41,7 @@ jobs:
target: "final-static"
suffix: ""
latest: "auto"

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -44,6 +51,12 @@ jobs:
with:
swap-size-gb: 12

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

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

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

- name: Build
Expand Down

0 comments on commit 4eaa87e

Please sign in to comment.