Add to the cache in deploy section



We are currently building and testing docker images. It would be nice if I could update the cache with the new image only if the build passed, and moved onto the deploy section.

There’s no reason to update the cache with a new image if it’s going to break stuff. I also shouldn’t be updating it if it’s simply a pull request. I only want to update it if it’s moving onto the deploy section.