cleanup.sh 252 B

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