diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d078db0..e7bdd96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: uses: actions/cache@v4 with: path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum')}} restore-keys: | ${{ runner.os }}-go- - name: Docker Login diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bbd190a..e5c054a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,6 +2,12 @@ version: 2 builds: - env: - CGO_ENABLED=0 + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 dockers: - dockerfile: Dockerfile-goreleaser @@ -12,13 +18,9 @@ dockers: - "quay.io/lunarway/humio_exporter:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}" archives: - - format: binary + - id: archives + format: binary name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}" - replacements: - darwin: darwin - linux: linux - windows: windows - 386: i386 checksum: name_template: "{{ .ProjectName }}-checksums.txt"