Skip to content
Snippets Groups Projects
Unverified Commit 10276206 authored by Mark Sagi-Kazar's avatar Mark Sagi-Kazar
Browse files

build: only build static release binaries

parent 5f58d8e7
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ group=$(shell id -g -n) ...@@ -18,7 +18,7 @@ group=$(shell id -g -n)
export GOBIN=$(PWD)/bin export GOBIN=$(PWD)/bin
LD_FLAGS="-w -X main.version=$(VERSION) -extldflags \"-static\"" LD_FLAGS="-w -X main.version=$(VERSION)"
# Dependency versions # Dependency versions
...@@ -46,6 +46,7 @@ bin/example-app: ...@@ -46,6 +46,7 @@ bin/example-app:
@cd examples/ && go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/examples/example-app @cd examples/ && go install -v -ldflags $(LD_FLAGS) $(REPO_PATH)/examples/example-app
.PHONY: release-binary .PHONY: release-binary
release-binary: LD_FLAGS = "-w -X main.version=$(VERSION) -extldflags \"-static\""
release-binary: generate release-binary: generate
@go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex @go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
@go build -o /go/bin/docker-entrypoint -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/docker-entrypoint @go build -o /go/bin/docker-entrypoint -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/docker-entrypoint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment