Tessian/catapult

Tag releases in git

Closed this issue · 1 comments

I'd like releases of my_app to be automatically tagged in git. That way I can easily see in git log and the GitHub UI (etc) which commits match to which version of which application, and I can easily do things like

git log my_app_v123..my_app_v125

and

git diff my_app_v123..my_app_v125

I think tags should be in the format <app-name>_v<version-number>.

Probably the tag can be created by pygit2 in the user's local repo when a release is created, and then pushed to the remote. The other option is for concourse to do this, but it's probably easier for the actual catapult script to do it.

On thinking through this further, we should use the out step of git-resource to push the tag as part of the pipeline.

We should modify catapult's in so that it writes a sensible tag name to a file that git-resource can later use.