From 9b90712d2847de226f1399b1f5b792e319e0ba3c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 16 Mar 2021 05:57:01 +0100 Subject: [PATCH] Look up image name and show it also --- abra | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abra b/abra index e9fc41f..3e2102a 100755 --- a/abra +++ b/abra @@ -504,7 +504,8 @@ output_version_summary() { live_version=$(echo "$label" | cut -d- -f1) live_digest=$(echo "$label" | cut -d- -f2) if [ -n "$live_version" ] && [ -n "$live_digest" ]; then - echo " ${STACK_NAME}_${SERVICE}:" + image=$($YQ e ".services.${SERVICE}.image" "${APP_DIR}/${COMPOSE}" | cut -d':' -f1) + echo " ${STACK_NAME}_${SERVICE} (${image}):" echo " deployed: $(tput setaf 2)$live_version ($live_digest)$(tput sgr0)" app_version_lookup="ABRA_TYPE_${SERVICE^^}_VERSION" app_version=${!app_version_lookup}