[wip] don't exit with error when `docker ps -a -q` returns no ids

This commit is contained in:
Michael Bradley, Jr 2022-09-27 12:22:08 -05:00
parent 76a054defa
commit be472adf57
No known key found for this signature in database
GPG Key ID: 9FCA591DA4CE7D0D
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ jobs:
- name: Save additional Testground resources to cache
if: steps.testground-reources-cache.outputs.cache-hit != 'true'
run: |
docker ps -a -q | xargs docker kill &>/dev/null ; docker ps -a -q | xargs docker rm
(docker ps -a -q | xargs docker kill &>/dev/null) || true ; (docker ps -a -q | xargs docker rm &>/dev/null) || true
docker save nimbase:latest | gzip > "${HOME}/docker/saved-images/nimbase_latest.tar.gz"
docker save bitnami/grafana:latest | gzip > "${HOME}/docker/saved-images/bitnami_grafana_latest.tar.gz"
docker save redis:latest | gzip > "${HOME}/docker/saved-images/redis_latest.tar.gz"