mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 20:17:44 +01:00
This ensures users don't have issues with cached state in regards to files pulled from the repo/image. Also add missing docs for deploy-source-set trigger. Closes #5963
19 lines
473 B
Bash
Executable File
19 lines
473 B
Bash
Executable File
#!/usr/bin/env bash
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
trigger-git-deploy-source-set() {
|
|
declare desc="clears the source-image if the source type is not docker"
|
|
declare trigger="deploy-source-set"
|
|
declare APP="$1" SOURCE_TYPE="$2"
|
|
|
|
if [[ "$SOURCE_TYPE" == "docker-image" ]]; then
|
|
return
|
|
fi
|
|
|
|
fn-plugin-property-write "git" "$APP" "source-image"
|
|
}
|
|
|
|
trigger-git-deploy-source-set "$@"
|