FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

feat(release-it): tweak template to be common pipeline amenable

Merged Dr Rich Wareham requested to merge issue-94-add-release-it-to-common-pipeline into master
3 files
+ 33
5
Compare changes
  • Side-by-side
  • Inline
Files
3
  • As noted in #94, release-it was not yet present in the common pipeline
    which was a blocker of the vision of "OpenAPI client generation releases
    are zero-configuration". #94 also noted that not much had to be done to
    add release-it to the common pipeline.
    
    Gate the release-it jobs behind the presence of a `.release-it.json`
    file in the root of the repository. This should have zero effect on
    current users since that file needs to be present in order to use
    release-it. Guard against inadvertent triggering by allowing jobs to be
    explicitly disabled via a `RELEASE_IT_DISABLED` variable.
    
    To guard against future namespace clashes, namespace all the release-it
    jobs. In #94, it was originally suggested that the
    `USE_MERGE_REQUEST_RELEASE_FLOW` variable could be namespaces and given
    the backup value of `USE_MERGE_REQUEST_RELEASE_FLOW` to avoid breaking
    clients but, upon reflection, having *two* variables controlling this
    behaviour adds more confusion than it prevents. As such, leave the
    variable un-namespaced as an interesting historical remnant.
@@ -20,6 +20,7 @@ include:
- local: "/auto-devops/mkdocs-docs.gitlab-ci.yml"
- local: "/auto-devops/trigger-renovatebot.gitlab-ci.yml"
- local: "/auto-devops/openapi-generator.gitlab-ci.yml"
- local: "/auto-devops/release-it.yml"
# Fail-safe workflow rules. These can be overridden by CI configuration which includes us.
- template: Workflows/Branch-Pipelines.gitlab-ci.yml
Loading