Add ACI E2E resource cleanup command

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
Guillaume Tardif 2020-10-09 10:07:13 +02:00
parent cda66b5e90
commit 8325768a72
1 changed files with 5 additions and 2 deletions

View File

@ -96,7 +96,10 @@ validate-go-mod: ## Validate go.mod and go.sum are up-to-date
validate: validate-go-mod validate-headers ## Validate sources
pre-commit: all lint validate test e2e-local
pre-commit: cli test e2e-local lint validate
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-cmd group delete -y --no-wait -g
help: ## Show help
@echo Please specify a build target. The choices are:
@ -104,4 +107,4 @@ help: ## Show help
FORCE:
.PHONY: all validate protos cli e2e-local cross test cache-clear lint check-dependencies serve classic-link help
.PHONY: all validate protos cli e2e-local cross test cache-clear lint check-dependencies serve classic-link help clean-aci-e2e