cleanup.sh 276 B

123456789101112131415
  1. #!/bin/sh
  2. set -eu
  3. cd "$(dirname $0)"
  4. docker compose down --timeout 0
  5. docker volume prune --all --force
  6. DELETE_IMAGES=$(docker image ls "zammad-packagerio-ci-${CI_JOB_ID}" -q)
  7. if [ -n "$DELETE_IMAGES" ]
  8. then
  9. # shellcheck disable=SC2086
  10. docker image rm $DELETE_IMAGES
  11. fi