mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #125105 from BenTheElder/pause-build
pause: containerize wincat build
This commit is contained in:
commit
e5a98f8379
@ -118,7 +118,13 @@ bin/${BIN.linux}-$(OS)-$(ARCH): $(SRCS)
|
|||||||
$(TRIPLE)-strip $(foreach binary, $@, ${binary}${EXTENSION})"
|
$(TRIPLE)-strip $(foreach binary, $@, ${binary}${EXTENSION})"
|
||||||
|
|
||||||
bin/wincat-windows-${ARCH}: windows/wincat/wincat.go
|
bin/wincat-windows-${ARCH}: windows/wincat/wincat.go
|
||||||
CGO_ENABLED=0 GOOS=windows GOARCH=${ARCH} go build -o $@ $^
|
mkdir -p bin
|
||||||
|
docker run --rm -u $$(id -u):$$(id -g) -v $$(pwd):/build \
|
||||||
|
--tmpfs /.cache \
|
||||||
|
$(KUBE_CROSS_IMAGE):$(KUBE_CROSS_VERSION) \
|
||||||
|
/bin/bash -c "\
|
||||||
|
cd /build && \
|
||||||
|
CGO_ENABLED=0 GOOS=windows GOARCH=${ARCH} go build -o $@ $^"
|
||||||
|
|
||||||
container: .container-${OS}-$(ARCH)
|
container: .container-${OS}-$(ARCH)
|
||||||
.container-linux-$(ARCH): bin/$(BIN)-$(OS)-$(ARCH)
|
.container-linux-$(ARCH): bin/$(BIN)-$(OS)-$(ARCH)
|
||||||
|
Loading…
Reference in New Issue
Block a user