Skip to content

Commit

Permalink
Merge pull request #8225 from killianmuldoon/pr-1-3-fix-uid-in-release
Browse files Browse the repository at this point in the history
[release-1.3] 🐛 Replace fixed build uid with command
  • Loading branch information
k8s-ci-robot authored Mar 2, 2023
2 parents bcfeb06 + 22551ef commit 5877048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -910,10 +910,11 @@ release-binary: $(RELEASE_DIR)
-e CGO_ENABLED=0 \
-e GOOS=$(GOOS) \
-e GOARCH=$(GOARCH) \
-e GOCACHE=/tmp/ \
--user $$(id -u):$$(id -g) \
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
-w /workspace \
golang:$(GO_VERSION) \
git config --global --add safe.directory /workspace; \
go build -a -trimpath -ldflags "$(LDFLAGS) -extldflags '-static'" \
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY)) $(BUILD_PATH)

Expand Down

0 comments on commit 5877048

Please sign in to comment.