diff --git a/plugins/common/functions b/plugins/common/functions index b7fe733cf..bb6bd1d7f 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -657,6 +657,7 @@ cmd-deploy() { verify_app_name "$APP" local DOKKU_SCHEDULER=$(get_app_scheduler "$APP") + plugn trigger pre-deploy "$APP" "$IMAGE_TAG" plugn trigger scheduler-deploy "$DOKKU_SCHEDULER" "$APP" "$IMAGE_TAG" } @@ -687,7 +688,6 @@ release_and_deploy() { local DOKKU_SKIP_DEPLOY=${DOKKU_APP_SKIP_DEPLOY:="$DOKKU_GLOBAL_SKIP_DEPLOY"} dokku_log_info1 "Releasing $APP..." - plugn trigger pre-deploy "$APP" "$IMAGE_TAG" dokku_release "$APP" "$IMAGE_SOURCE_TYPE" "$IMAGE_TAG" if [[ "$DOKKU_SKIP_DEPLOY" != "true" ]]; then