File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -442,6 +442,7 @@ balena_lib_release() {
442
442
local _image_id=" ${5} "
443
443
local _releaseID=" "
444
444
local _status=" "
445
+ local _debug=" "
445
446
446
447
[ -z " ${_appName} " ] && >&2 echo " balena_lib_release: Application name is required" && exit 1
447
448
_apiEnv=${_apiEnv:- " $( balena_lib_environment) " }
@@ -457,12 +458,13 @@ balena_lib_release() {
457
458
if [ " ${_final} " = " no" ]; then
458
459
_status=" --draft"
459
460
fi
461
+ [ " ${VERBOSE} " = " verbose" ] && _debug=" --debug"
460
462
461
463
balena_lib_login " ${_apiEnv} "
462
464
if [ -n " ${_image_id} " ]; then
463
- _releaseID=$( BALENARC_BALENA_URL=" ${_apiEnv} " balena deploy " ${_appName} " " ${_image_id} " --source " ${_path} " ${_status} | sed -n ' s/.*Release: //p' )
465
+ _releaseID=$( BALENARC_BALENA_URL=" ${_apiEnv} " balena deploy " ${_appName} " " ${_image_id} " --source " ${_path} " ${_status} ${_debug} | sed -n ' s/.*Release: //p' )
464
466
else
465
- _releaseID=$( BALENARC_BALENA_URL=" ${_apiEnv} " balena deploy " ${_appName} " --build --source " ${_path} " ${_status} | sed -n ' s/.*Release: //p' )
467
+ _releaseID=$( BALENARC_BALENA_URL=" ${_apiEnv} " balena deploy " ${_appName} " --build --source " ${_path} " ${_status} ${_debug} | sed -n ' s/.*Release: //p' )
466
468
fi
467
469
[ -n " ${_releaseID} " ] && >&2 echo " Deployed ${_image_id} to ${_appName} as ${_status## --} at ${_releaseID} "
468
470
echo " ${_releaseID} "
You can’t perform that action at this time.
0 commit comments