diff --git a/Makefile b/Makefile index 82c852d13..dc1f0a35c 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ help: @echo "\tmake push -- pushes the litmus-go multi-arch image" @echo "\tmake build-amd64 -- builds the litmus-go binary & docker amd64 image" @echo "\tmake push-amd64 -- pushes the litmus-go amd64 image" + @echo "\tpush-multiarch -- pushes the litmus-go multiarch image" @echo "" .PHONY: all @@ -90,6 +91,17 @@ push-amd64: @echo "------------------------------" @sudo docker push $(DOCKER_REGISTRY)/$(DOCKER_REPO)/$(DOCKER_IMAGE):$(DOCKER_TAG) +.PHONY: push-multiarch +push-multiarch: docker.buildx image-push-multiarch + +image-push-arm64: + @echo "------------------------" + @echo "--> Push go-runner image" + @echo "------------------------" + @echo "Pushing $(DOCKER_REPO)/$(DOCKER_IMAGE):$(DOCKER_TAG)" + @docker buildx build . --push --file build/Dockerfile --progress plane --platform linux/arm64,linux/amd64 --no-cache --tag $(DOCKER_REGISTRY)/$(DOCKER_REPO)/$(DOCKER_IMAGE):$(DOCKER_TAG) + + .PHONY: trivy-check trivy-check: