File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,20 @@ IMAGE_NAME ?= ghcr.io/spinkube/containerd-shim-spin/node-installer
33PLATFORM ?= linux/amd64
44ARCH ?= x86_64
55TARGET ?= $(ARCH ) -unknown-linux-musl
6+ BINARY := ./.tmp/$(PLATFORM ) /containerd-shim-spin-$(SPIN_VERSION )
67
78compile-musl :
89 make build-cross-$(TARGET ) -C ../
910
10- move-musl-to-tmp : compile-musl
11- mkdir -p ./.tmp
12- cp ../target/$(TARGET ) /release/containerd-shim-spin-$(SPIN_VERSION ) ./.tmp/$(PLATFORM ) /
11+ $(BINARY ) :
12+ mkdir -p ./.tmp/$(PLATFORM )
13+ $(MAKE ) compile-musl
14+ cp ../target/$(TARGET ) /release/containerd-shim-spin-$(SPIN_VERSION ) $(BINARY )
1315
14- build-multi-installer-image : move-musl-to-tmp
16+ build-multi-installer-image : $( BINARY )
1517 docker buildx build -t $(IMAGE_NAME ) --platform linux/amd64,linux/arm64 .
1618
17- build-dev-installer-image : move-musl-to-tmp
19+ build-dev-installer-image : $( BINARY )
1820 docker buildx build -t $(IMAGE_NAME ) --load --platform $(PLATFORM ) .
1921
2022test :
You can’t perform that action at this time.
0 commit comments