Skip to content

Commit

Permalink
Run go-makefile-maker
Browse files Browse the repository at this point in the history
  • Loading branch information
sapcc-bot committed Jan 29, 2024
1 parent 1a53adb commit 6772ca8
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
archives:
- name_template: '{{ .ProjectName }}-{{ replace .Version "v" "" }}-{{ .Os }}-{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
files:
- CHANGELOG.md
- LICENSE
- README.md

before:
hooks:
- go mod tidy

checksum:
name_template: "checksums.txt"

builds:
- env:
- binary: 'swift-health-exporter'
env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -18,21 +32,12 @@ builds:
- -X github.com/sapcc/go-api-declarations/bininfo.version={{ .Version }}
- -X github.com/sapcc/go-api-declarations/bininfo.commit={{ .FullCommit }}
- -X github.com/sapcc/go-api-declarations/bininfo.buildDate={{ .CommitDate }} # use CommitDate instead of Date for reproducibility
main: .
# Set the modified timestamp on the output binary to ensure that builds are reproducible.
mod_timestamp: "{{ .CommitTimestamp }}"

release:
prerelease: auto

snapshot:
name_template: "{{ .Tag }}-next"

checksum:
name_template: "checksums.txt"

archives:
- name_template: '{{ .ProjectName }}-{{ replace .Version "v" "" }}-{{ .Os }}-{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
files:
- CHANGELOG.md
- LICENSE
- README.md

0 comments on commit 6772ca8

Please sign in to comment.