Skip to content

Commit

Permalink
add git pull to build-and-push-hyperkit-build-image
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Apr 19, 2024
1 parent ee7ebe3 commit fa174bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,9 @@ release-hyperkit-driver: install-hyperkit-driver checksum ## Copy hyperkit using
.PHONY: build-and-push-hyperkit-build-image
build-and-push-hyperkit-build-image:
test -d out/xcgo || git clone https://github.com/neilotoole/xcgo.git out/xcgo
(cd out/xcgo && sed -i'.bak' -e 's/ARG GO_VERSION.*/ARG GO_VERSION="go$(GO_VERSION)"/' Dockerfile)
(cd out/xcgo && docker build -t gcr.io/k8s-minikube/xcgo:go$(GO_VERSION) .)
(cd out/xcgo && git restore . && git pull && \
sed -i'.bak' -e 's/ARG GO_VERSION.*/ARG GO_VERSION="go$(GO_VERSION)"/' Dockerfile && \
docker build -t gcr.io/k8s-minikube/xcgo:go$(GO_VERSION) .)
docker push gcr.io/k8s-minikube/xcgo:go$(GO_VERSION)

.PHONY: check-release
Expand Down

0 comments on commit fa174bb

Please sign in to comment.