This is an example on how to use the go-git library to tag a commit:
- clone the repo with ssh (using an identity file)
- check to see if the tag exists
- if it doesn't exist create it
- push the newly created tag to remote
The code is explained here: https://medium.com/@clm160/tag-example-with-go-git-library-4377a84bbf17