1- IMAGE_REPO ?= rg.fr-par.scw.cloud/funcscwriseriscvrunnerappqdvknz9s/riscv-runner
2- GOARCH ?= riscv64
1+ REGISTRY ?= rg.fr-par.scw.cloud/funcscwriseriscvrunnerappqdvknz9s
2+ IMAGE ?= riscv-runner
3+ GOARCH ?= riscv64
34
45.PHONY : build
56build : build-device-plugin build-node-labeller
@@ -17,24 +18,24 @@ container-build: container-build-device-plugin container-build-node-labeller
1718
1819.PHONY : container-build-device-plugin
1920container-build-device-plugin :
20- docker build --platform linux/riscv64 -f Dockerfile -t $(IMAGE_REPO ) :device-plugin-latest .
21+ docker build --platform linux/riscv64 -f Dockerfile -t $(REGISTRY ) / $( IMAGE ) :device-plugin-latest .
2122
2223.PHONY : container-build-node-labeller
2324container-build-node-labeller :
24- docker build --platform linux/riscv64 -f labeller.Dockerfile -t $(IMAGE_REPO ) :node-labeller-latest .
25+ docker build --platform linux/riscv64 -f labeller.Dockerfile -t $(REGISTRY ) / $( IMAGE ) :node-labeller-latest .
2526
2627.PHONY : container-push
2728container-push : container-push-device-plugin container-push-node-labeller
2829
2930.PHONY : container-push-device-plugin
3031container-push-device-plugin :
31- docker build --platform linux/riscv64 -f Dockerfile -t $(IMAGE_REPO ) :device-plugin-latest .
32- docker push $(IMAGE_REPO ) :device-plugin-latest
32+ docker build --platform linux/riscv64 -f Dockerfile -t $(REGISTRY ) / $( IMAGE ) :device-plugin-latest .
33+ docker push $(REGISTRY ) / $( IMAGE ) :device-plugin-latest
3334
3435.PHONY : container-push-node-labeller
3536container-push-node-labeller :
36- docker build --platform linux/riscv64 -f labeller.Dockerfile -t $(IMAGE_REPO ) :node-labeller-latest .
37- docker push $(IMAGE_REPO ) :node-labeller-latest
37+ docker build --platform linux/riscv64 -f labeller.Dockerfile -t $(REGISTRY ) / $( IMAGE ) :node-labeller-latest .
38+ docker push $(REGISTRY ) / $( IMAGE ) :node-labeller-latest
3839
3940.PHONY : kubectl-apply
4041kubectl-apply : kubectl-apply-device-plugin kubectl-apply-node-labeller
0 commit comments