I've recently configured one of my repositories to automatically deploy a release whenever I push a git tag
matching "vX.Y.Z", but this process isn't entirely automatic.
Specifically, I have to update my version number in the source code (i.e. bump "vX.Y.Z") before I can tag it to be built.
So it seems I have a couple options
- Continue bumping the build number manually before tagging
- Have my CI update the build number (e.g. extract it from the tag) then commit the changes to
master
In my opinion, bumping the version number manually is preferable because it requires more effort before deploying a release, and the releases are tied to the commit rather than being one commit behind in the case that CI has to update the version number. (Also I don't want to wait for a build to finish deploying before updating master
)
I haven't been able to find a strong opinion online, so I'm curious:
Is it considered bad practice to have my CI build server commit into my repository?