feat: Allow running semantic-release on non dotcom projects
What
This change provides an additional input to the semantic release
definition. This allows adding context for where the canonical
repository is defined, and where semantic-release
can run.
The default usage remains the same for existing gitlab.com
projects, assuming that we only wanted pipelines to run on gitlab.com
.
Why
Previously this rule disallowed running semantic-release
on Ops,
with the assumption that we will always use dotcom as the canonical
source, with the mirror receiving the same changes.
For our terraform modules, a number of them are defined on our ops
instance with mirrors on dotcom. We should be running
semantic-release
on ops so that the mirroring of tags continues to work as expected.
Relates to: production-engineering#26923 (closed)