From 98a4ae2000a1a6c19d2a69c9cafca82cbee953d2 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Fri, 26 May 2023 09:57:42 +0200 Subject: [PATCH] Update README --- README.md | 6 +++++- caprover_cleanup.py | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9186e075..8e9fc8c9 100644 --- a/README.md +++ b/README.md @@ -151,8 +151,12 @@ When you run caprover_deploy.sh without arguments, it will deploy the current br ### Cleanup caprover feature branch deployments -``` +```bash +# by default it will delete all vbv-feature-* apps python caprover_cleanup.py + +# or specify a specific app regex and delete without confirmation +python caprover_cleanup.py --automated -a 'vbv-bugfix*' ``` ## IntelliJ Configuration diff --git a/caprover_cleanup.py b/caprover_cleanup.py index 43333353..a7e8878c 100644 --- a/caprover_cleanup.py +++ b/caprover_cleanup.py @@ -7,8 +7,6 @@ from environs import Env logging.basicConfig(level=logging.DEBUG) env = Env() -env.read_env("./env_secrets/caprover_feature.env", recurse=False, override=True) -app_name = "vbv-feature-caprover-auto-deploy4" cap = caprover_api.CaproverAPI( dashboard_url=env.str("CAPROVER_DOMAIN"),