Merge pull request #860 from gtardif/aci_bettre_clean_e2e_resource_groups

Nicer cleanup make target for ACI resources
This commit is contained in:
Guillaume Tardif 2020-11-02 11:30:53 +01:00 committed by GitHub
commit 8deee73857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ publish-ecs-search-sidecar: build-ecs-search-sidecar ## build & publish ecs sear
docker pull docker/ecs-searchdomain-sidecar:$(tag) && echo "Failure: Tag already exists" || docker push docker/ecs-searchdomain-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: