yunohost-ci/cleanup.sh

17 lines
350 B
Bash
Raw Normal View History

2019-11-25 13:11:18 +01:00
#!/usr/bin/env bash
2020-03-26 17:50:12 +01:00
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $current_dir/common.sh
2019-11-25 13:11:18 +01:00
if [[ $IMAGE == "build-and-lint" ]]
then
echo "Should cleanup $CUSTOM_ENV_CI_GIT_CLONE_PATH ?"
exit 0
fi
info "Stopping container $CONTAINER_NAME"
2019-11-25 13:11:18 +01:00
incus stop "$CONTAINER_NAME"
incus delete "$CONTAINER_NAME"