From 72377355a906931e836d2f3b56fdd8e0aa21d27f Mon Sep 17 00:00:00 2001 From: Guillaume Tardif Date: Mon, 2 Nov 2020 09:40:15 +0100 Subject: [PATCH] Nicer cleanup make target for ACI resources Signed-off-by: Guillaume Tardif --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 33d0161e1..0ae7204cb 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,9 @@ publish-aci-sidecar: build-aci-sidecar ## build & publish aci sidecar image with docker pull docker/aci-hostnames-sidecar:$(tag) && echo "Failure: Tag already exists" || docker push docker/aci-hostnames-sidecar:$(tag) clean-aci-e2e: ## Make sure no ACI tests are currently runnnig in the CI when invoking this. Delete ACI E2E tests resources that might have leaked when ctrl-C E2E tests. - az group list | jq '.[].name' | grep E2E-Test | xargs -n1 az group delete -y --no-wait -g + @ echo "Will delete resource groups: " + @ az group list | jq '.[].name' | grep -i E2E-Test + az group list | jq '.[].name' | grep -i E2E-Test | xargs -n1 az group delete -y --no-wait -g help: ## Show help @echo Please specify a build target. The choices are: