Only tag built images as latest if the build step succeeded