implement central deploy lock and use in tar plugin

This commit is contained in:
Michael Hobbs
2016-06-17 15:25:46 -07:00
parent 2ece0e1bf8
commit 4f8c1b64c9
5 changed files with 45 additions and 40 deletions

View File

@@ -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
}