mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
11 lines
404 B
Bash
Executable File
11 lines
404 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG); CACHE_DIR="$DOKKU_ROOT/$APP/cache"
|
|
verify_app_name "$APP"
|
|
|
|
if [[ -d $CACHE_DIR ]]; then
|
|
docker run --rm -v "$CACHE_DIR:/cache" "$IMAGE" find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \; || true
|
|
fi
|