Move Docker release logic out from Makefile
Our current logic for Docker image creation is messy, as it splits the logic between the Makefile and Rake tasks. Some of the possible modifications are
-
Cleanup is a common task - it should be just a function call thatNow that we are using dind, which gets teared down after use, cleanup is kinda unnecessary.build
will call, rather than a separate target. - Distinction between rc/latest/tag should happen in Rake task, not in Makefile - Need to figure out how.
- QA/GitLab distinction should happen in Rake task. Makefile may just provide that as an environment variable. Don't duplicate same logic twice.