Skip to content

Commit

Permalink
Convert ldflags to array
Browse files Browse the repository at this point in the history
  • Loading branch information
eversC committed Nov 11, 2019
1 parent 80e21e9 commit 0ee301c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ builds:
goarch:
- amd64
ldflags:
- -s -w -X github.com/ovotech/cloud-key-rotator/cmd/cobra.version={{.Version}} -X github.com/ovotech/cloud-key-rotator/cmd/cobra.commit={{.ShortCommit}} -X github.com/ovotech/cloud-key-rotator/cmd/cobra.date={{.Date}} -X github.com/ovotech/cloud-key-rotator/cmd/cobra.osArch={{.Os}}
- -s -w
- -X github.com/ovotech/cloud-key-rotator/cmd/cobra.version={{.Version}}
- -X github.com/ovotech/cloud-key-rotator/cmd/cobra.commit={{.ShortCommit}}
- -X github.com/ovotech/cloud-key-rotator/cmd/cobra.date={{.Date}}
- -X github.com/ovotech/cloud-key-rotator/cmd/cobra.osArch={{.Os}}/{{.Arch}}
- id: lambda-build
binary: cloud-key-rotator
main: ./cmd/
Expand Down

0 comments on commit 0ee301c

Please sign in to comment.