Skip to content

Commit

Permalink
Merge pull request #125105 from BenTheElder/pause-build
Browse files Browse the repository at this point in the history
pause: containerize wincat build
  • Loading branch information
k8s-ci-robot committed May 23, 2024
2 parents 028b457 + 7aa5693 commit e5a98f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/pause/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ bin/${BIN.linux}-$(OS)-$(ARCH): $(SRCS)
$(TRIPLE)-strip $(foreach binary, $@, ${binary}${EXTENSION})"

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-linux-$(ARCH): bin/$(BIN)-$(OS)-$(ARCH)
Expand Down

0 comments on commit e5a98f8

Please sign in to comment.