diff --git a/.dockerignore b/.dockerignore index c51cdba..0f55d45 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,3 @@ -/vendor/ /azure-resourcegraph-exporter /example /release-assets diff --git a/.github/workflows/build-docker.yaml b/.github/workflows/build-docker.yaml index ff7c11d..8ac7451 100644 --- a/.github/workflows/build-docker.yaml +++ b/.github/workflows/build-docker.yaml @@ -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 @@ -35,6 +41,7 @@ jobs: target: "final-static" suffix: "" latest: "auto" + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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 diff --git a/.github/workflows/release-assets.yaml b/.github/workflows/release-assets.yaml index 2fe3fc3..03ec06e 100644 --- a/.github/workflows/release-assets.yaml +++ b/.github/workflows/release-assets.yaml @@ -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