implement central deploy lock and use in tar plugin
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/tar/functions"
|
||||
|
||||
tar_receive_app() {
|
||||
declare desc="tar receive-app plugin trigger"
|
||||
@@ -11,7 +12,10 @@ tar_receive_app() {
|
||||
if [[ ! -f "$DOKKU_ROOT/$APP/src.tar" ]]; then
|
||||
true
|
||||
else
|
||||
dokku tar:build "$APP"
|
||||
acquire_app_deploy_lock "$APP"
|
||||
# shellcheck disable=SC2086
|
||||
tar_build "$@"
|
||||
release_app_deploy_lock "$APP"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user