#!/usr/bin/env bash

set +u

if [[ "${BUILDKITE_AGENT_META_DATA_CLEANBUILD}" != "false" ]]; then
  echo "--- :docker: Clean environment"
  docker system prune -af --volumes
fi