How do we add custom annotated tags on master
once the pull requests (PR) is complete, automatically?
More background:
- Using
azure-pipelines.yml
- Branch policies on
master
to force PR to be used - We have a repository that holds Azure Devops Pipeline Templates ("devops templates repo")
- Other repos have a root pipeline file that references the "devops template" repo
- We use SEMVER for tagging our products, including the devops template repo
- In root pipelines we wish to pin to a SEMVER release of the devops template repo
- We currently tag manually with each of the following to point to the merge commit that occurred after the PR completed
- "v
MAJOR
.MINOR
.PATCH
" - "v
MAJOR
.MINOR
" - "v
MAJOR
"
- "v
Pin on MAJOR
only example:
resources:
repositories:
- repository: templates
type: git
name: template_devops_pipelines
ref: "refs/tags/v1"