Branch builds automatically using the tag "branch-branchname". The master branch builds with the tag "latest". GitHub releases will trigger builds with the release name as the tag. So we should get Docker images that match with the GitHub release versions automatically. The branch builds can also be used for testing during development.
Simplified to a single build script that will trigger on all pushes and releases. It will automatically tag branches with the branch name, master with latest, and releases with the release name.
Branch builds automatically using the tag "branch-branchname". The master branch builds with the tag "latest". GitHub releases will trigger builds with the release name as the tag. So we should get Docker images that match with the GitHub release versions automatically. The branch builds can also be used for testing during development.