Skip to content

Commit

Permalink
Add ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinhlybin committed Oct 15, 2024
1 parent ccb9ae6 commit ec4b74c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ before:
- go mod tidy

builds:
- hooks:
pre: make build
goos:
- goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -X 'github.com/marcinhlybin/docker-env/version.BuildDate={{.CommitDate}}'
- -X 'github.com/marcinhlybin/docker-env/version.CommitHash={{.Commit}}'

archives:
- format: tar.gz
Expand Down

0 comments on commit ec4b74c

Please sign in to comment.