diff --git a/plugins/ps/functions b/plugins/ps/functions index 3470a89c622..8599fc04e96 100755 --- a/plugins/ps/functions +++ b/plugins/ps/functions @@ -14,7 +14,7 @@ print_dokku_scale_file() { extract_procfile() { declare desc="extracts procfile from app image" local APP="$1" - local IMAGE_TAG="$(get_running_image_tag "$APP")" + local IMAGE_TAG="$2" local IMAGE="$(get_app_image_name "$APP" "$IMAGE_TAG")" local DOKKU_PROCFILE="$DOKKU_ROOT/$APP/DOKKU_PROCFILE" verify_app_name "$APP" diff --git a/plugins/ps/pre-deploy b/plugins/ps/pre-deploy index 92112d8ec2a..ef8c1251f4e 100755 --- a/plugins/ps/pre-deploy +++ b/plugins/ps/pre-deploy @@ -6,10 +6,10 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions" ps_pre_deploy() { declare desc="ps pre-deploy plugin trigger" local trigger="ps_pre_deploy" - local APP="$1" + local APP="$1"; local IMAGE_TAG="$2" - extract_procfile "$APP" - generate_scale_file "$APP" + extract_procfile "$APP" "$IMAGE_TAG" + generate_scale_file "$APP" "$IMAGE_TAG" } ps_pre_deploy "$@"