forked from toolshed/abra
		
	Use STACK_NAME instead of Gitea
This commit is contained in:
		
							
								
								
									
										4
									
								
								abra
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								abra
									
									
									
									
									
								
							| @ -467,8 +467,8 @@ output_version_summary() { | ||||
|   for COMPOSE in "${COMPOSE_FILES[@]}"; do | ||||
|     SERVICES=$(yq e '.services | keys | .[]' "${APP_DIR}/${COMPOSE_FILE}") | ||||
|     for SERVICE in $SERVICES; do | ||||
|       filter="{{index .Spec.Labels \"coop-cloud.gitea.$SERVICE.version\" }}" | ||||
|       label=$(docker service inspect -f "$filter" "gitea_$SERVICE" 2>/dev/null) | ||||
|       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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user