mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
pass image tag from release_and_deploy down through extract_procfile. closed #2226
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user