File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments