mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
21 lines
659 B
Bash
Executable File
21 lines
659 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
|
|
|
config_docker_args() {
|
|
declare desc="config docker-args plugin trigger"
|
|
local trigger="$0 config_docker_args"
|
|
local STDIN=$(cat); local APP="$1"; local IMAGE_TAG="$2"; local IMAGE=$(get_deploying_app_image_name "$APP" "$IMAGE_TAG")
|
|
verify_app_name "$APP"
|
|
|
|
if ! is_image_herokuish_based "$IMAGE"; then
|
|
local ENV_ARGS="$(config_export app $APP --prefix="-e" --separator=" " --merged)"
|
|
echo -n "$STDIN $ENV_ARGS"
|
|
else
|
|
echo -n "$STDIN"
|
|
fi
|
|
}
|
|
|
|
config_docker_args "$@"
|