Skip to content

Commit

Permalink
Switch from alpine to distroless, add -extldflags static
Browse files Browse the repository at this point in the history
  • Loading branch information
seslattery committed Nov 28, 2023
1 parent 08cd511 commit 0fbf9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ builds:
- goos: freebsd
goarch: "386"
ldflags:
- -s -w -X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=v{{.Version}}
- -extldflags "-static" -s -w -X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=v{{.Version}}

archives:
-
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: build release test

build:
go build -o doppler -ldflags="-X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=dev-$(shell git rev-parse --abbrev-ref HEAD)-$(shell git rev-parse --short HEAD)" main.go
GGO_ENABLED=0 go build -o doppler -ldflags="-extldflags "-static" -X github.com/DopplerHQ/cli/pkg/version.ProgramVersion=dev-$(shell git rev-parse --abbrev-ref HEAD)-$(shell git rev-parse --short HEAD)" main.go

test:
go test ./pkg/... -v
Expand Down

0 comments on commit 0fbf9ca

Please sign in to comment.