All the gradle stuff happens in the Dockerfile and all the "steps" are turned off since they're just tagging, so it reports success after a few seconds even though the Dockerfile hasn't finished running yet.
The fix for this is to only set up the build environment in the Dockerfile and move the gradle stuff into a "step" so it will wait for it to complete.
Branch builds on Codeship pass immediately.
All the gradle stuff happens in the Dockerfile and all the "steps" are turned off since they're just tagging, so it reports success after a few seconds even though the Dockerfile hasn't finished running yet.
The fix for this is to only set up the build environment in the Dockerfile and move the gradle stuff into a "step" so it will wait for it to complete.