docker-archive / dockercloud-cli

CLI for Docker Cloud
https://cloud.docker.com/
Apache License 2.0
74 stars 40 forks source link

Determine the real status of a redeploy #59

Open jblac opened 6 years ago

jblac commented 6 years ago

I have a bash script, which my CI system is using to redeploy an environment. Script located: https://gist.github.com/jblac/b79e549ecb282175d07451ebe189aac1

This works, problem that I'm having is it's not reliable. Sometimes my CI system will show that it succeeded successfully, but in reality it failed to re-deploy.

Running off the inspect state is unreliable, but aside from using the event and figuring out how to parse the stream i'm at a loss for an easy way to do it.