Look up image name and show it also

This commit is contained in:
decentral1se 2021-03-16 05:57:01 +01:00
parent 1dd3fe6fcd
commit 9b90712d28
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 2 additions and 1 deletions

3
abra
View File

@ -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}