Skip to content

Commit 5c7030a

Browse files
authored
Merge pull request #382 from andrewsykim/fix-clusterctl-in-docker
fix permissoin issue in make clusterctl-in-docker
2 parents 17eb6f2 + 41ddb52 commit 5c7030a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ clusterctl-in-docker:
5151
docker run --rm -v $(CWD):/go/src/sigs.k8s.io/cluster-api-provider-vsphere \
5252
-w /go/src/sigs.k8s.io/cluster-api-provider-vsphere \
5353
-e CGO_ENABLED=0 -e GOOS="$${GOOS:-linux}" -e GOARCH="$${GOARCH:-amd64}" \
54-
golang:1.12 \
55-
go build -ldflags '-extldflags "-static" -w -s' \
56-
-o bin/clusterctl."$${GOOS:-linux}"_"$${GOARCH:-amd64}" ./cmd/clusterctl
57-
@cp -f bin/clusterctl."$${GOOS:-linux}"_"$${GOARCH:-amd64}" bin/clusterctl
54+
golang:1.12.6 sh -c "\
55+
go build -ldflags '-extldflags \"-static\" -w -s' \
56+
-o bin/clusterctl.\"$${GOOS:-linux}\"_\"$${GOARCH:-amd64}\" ./cmd/clusterctl && \
57+
cp -f bin/clusterctl.\"$${GOOS:-linux}\"_\"$${GOARCH:-amd64}\" bin/clusterctl"
5858
.PHONY: clusterctl-in-docker
5959

6060
# Run against the configured Kubernetes cluster in ~/.kube/config

0 commit comments

Comments
 (0)