CI: Build Docker image only for {master branch,git tags} or remove Docker images on branch delete
We've started recently to build Docker images. As of now, we're already using ~ 1.5 gigabyte of storage to store these. Obviously, this doesn't scale.
Two ideas how to solve this:
- We only build the image for the master branch or for git tags, if releasing a new version.
- We remove the Docker image based on a specific branch on branch delete, e.g. if the branch gets merged to master.
I need some input / opinions on this, because I'm currently unsure who is using the Docker images in which way.
Edited by georg