Skip to content

Commit

Permalink
goreleaser: global env for before hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
navigaid committed Jan 13, 2025
1 parent 78924a6 commit a24daa7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ project_name: k0s

version: 2

env:
- CGO_ENABLED=0
- GONOSUMDB=*
- GOPROXY=https://proxy.golang.org,https://goproxy.cn,https://goproxy.io,direct

before:
hooks:
- go mod tidy

builds:
- id: k0s
env:
- CGO_ENABLED=0
- GONOSUMDB="*"
- GOPROXY="https://proxy.golang.org,https://goproxy.cn,https://goproxy.io,direct"
main: ./cmd/k0s
ldflags:
- -s -w -X "github.com/btwiuse/version.MajorString=0"
Expand Down

0 comments on commit a24daa7

Please sign in to comment.