Spacing for readability
This commit is contained in:
parent
9b90712d28
commit
d6caf03301
6
abra
6
abra
@ -495,18 +495,24 @@ load_abra_sh() {
|
||||
|
||||
output_version_summary() {
|
||||
echo " Versions:"
|
||||
|
||||
IFS=':' read -ra COMPOSE_FILES <<< "$COMPOSE_FILE"
|
||||
for COMPOSE in "${COMPOSE_FILES[@]}"; do
|
||||
SERVICES=$($YQ e '.services | keys | .[]' "${APP_DIR}/${COMPOSE}")
|
||||
|
||||
for SERVICE in $SERVICES; do
|
||||
filter="{{index .Spec.Labels \"coop-cloud.$STACK_NAME.$SERVICE.version\" }}"
|
||||
label=$(docker service inspect -f "$filter" "${STACK_NAME}_${SERVICE}" 2>/dev/null)
|
||||
|
||||
live_version=$(echo "$label" | cut -d- -f1)
|
||||
live_digest=$(echo "$label" | cut -d- -f2)
|
||||
|
||||
if [ -n "$live_version" ] && [ -n "$live_digest" ]; then
|
||||
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}
|
||||
app_digest_lookup="ABRA_TYPE_${SERVICE^^}_DIGEST"
|
||||
|
Loading…
Reference in New Issue
Block a user