Capture output for version checking

Closes coop-cloud/abra#85.
This commit is contained in:
Luke Murphy 2021-03-03 16:56:47 +01:00
parent 516309b478
commit 544c4e86ba
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

2
abra
View File

@ -883,7 +883,7 @@ sub_app_deploy (){
CONSENT_TO_UPDATE=$abra___update CONSENT_TO_UPDATE=$abra___update
deployed_version_digest=$(docker service inspect \ deployed_version_digest=$(docker service inspect \
-f "{{index .Spec.Labels \"coop-cloud.${STACK_NAME}.version\" }}" "${STACK_NAME}_app") -f "{{index .Spec.Labels \"coop-cloud.${STACK_NAME}.version\" }}" "${STACK_NAME}_app" > /dev/null 2>&1)
deployed_version=$(echo "$deployed_version_digest" | cut -d- -f1) deployed_version=$(echo "$deployed_version_digest" | cut -d- -f1)
deployed_digest=$(echo "$deployed_version_digest" | cut -d- -f2) deployed_digest=$(echo "$deployed_version_digest" | cut -d- -f2)