浏览代码

Nicer cleanup make target for ACI resources

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 5 年之前
父节点
当前提交
72377355a9
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Makefile

+ 3 - 1
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: