diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2017-04-12 10:14:09 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2017-04-12 10:14:09 +0000 |
commit | f680d9d55c9ad9db4b44fba8c9a68280f44276aa (patch) | |
tree | 1570423e2d28710c92a4cd5383ae8efcd23487b9 /tcwg-cleanup-stale-containers.yaml | |
parent | 96532e12041305da1971bf30253e980a7c7e7116 (diff) |
tcwg-cleanup-stale-containers: Enable image cleanup
Change-Id: I7a78a2051cb1e3ffc835f30a7fb67275e19f3a82
Diffstat (limited to 'tcwg-cleanup-stale-containers.yaml')
-rw-r--r-- | tcwg-cleanup-stale-containers.yaml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tcwg-cleanup-stale-containers.yaml b/tcwg-cleanup-stale-containers.yaml index b12fd92a..2c079d20 100644 --- a/tcwg-cleanup-stale-containers.yaml +++ b/tcwg-cleanup-stale-containers.yaml @@ -26,9 +26,17 @@ default: '' description: 'Additional "docker ps" options. Use "-a" to cleanup non-running containers. Do not override unless you understand what you are doing.' - bool: - name: dry_run + name: cleanup_containers + default: 'false' + description: 'Whether to cleanup containers' + - bool: + name: cleanup_volumes + default: 'false' + description: 'Whether to cleanup dangling volumes' + - bool: + name: cleanup_images default: 'true' - description: 'Whether to do a dry-run' + description: 'Whether to cleanup images' - bool: name: verbose default: 'false' @@ -85,7 +93,7 @@ #!/bin/bash set -ex - ./tcwg-cleanup-stale-containers.sh --hours $hours --docker_ps_opts "$docker_ps_opts" --dry_run $dry_run --verbose $verbose + ./tcwg-cleanup-stale-containers.sh --hours $hours --docker_ps_opts "$docker_ps_opts" --cleanup-containers $cleanup_containers --cleanup-volumes $cleanup_volumes --cleanup-images $cleanup_images --verbose $verbose publishers: - email: recipients: 'maxim.kuvyrkov@linaro.org christophe.lyon@linaro.org' |