Skip to content

Commit

Permalink
chore: add build tag to bind viper env vars to struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed May 6, 2024
1 parent af33057 commit 025d39c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .goreleaser-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ snapshot:
name_template: "commit-{{ .ShortCommit }}"
builds:
- env: [CGO_ENABLED=0]
flags:
- -tags=viper_bind_struct
ldflags:
- -s -w -X main.version={{ .Version }}
- -extldflags "-static"
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
project_name: sparrow
builds:
- env: [CGO_ENABLED=0]
flags:
- -tags=viper_bind_struct
ldflags:
- -s -w -X main.version={{ .Tag }}
- -extldflags "-static"
Expand Down

0 comments on commit 025d39c

Please sign in to comment.