Skip to content

Commit

Permalink
Fix: Go releaser (#113)
Browse files Browse the repository at this point in the history
Trying again with a different fix
  • Loading branch information
EhsanLunar authored Nov 28, 2024
1 parent 4f819c5 commit f64e141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 8 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ version: 2
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64

dockers:
- dockerfile: Dockerfile-goreleaser
Expand All @@ -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"
Expand Down

0 comments on commit f64e141

Please sign in to comment.