Skip to content

Commit

Permalink
Skip service updated notification if update failed
Browse files Browse the repository at this point in the history
  • Loading branch information
djmaze committed Jan 12, 2022
1 parent cf497f4 commit 73feedd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shepherd
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ update_services() {
body="$(date) Service $name failed to update to $(docker service inspect "$name" -f '{{.Spec.TaskTemplate.ContainerSpec.Image}}')"
curl -X POST -H "Content-Type: application/json" --data "{\"title\": \"$title\", \"body\": \"$body\"}" "$apprise_sidecar_url"
fi
continue # continue with next service
fi

previousImage=$(docker service inspect "$name" -f '{{.PreviousSpec.TaskTemplate.ContainerSpec.Image}}')
Expand Down

0 comments on commit 73feedd

Please sign in to comment.