Search code examples
gitlabincludeto-be-continuous

Which include syntax is recommended?


We have a copy of to-be-continuous at Orange, which is currently used like this:

include:
  # Python template
  - project: "to-be-continuous/python"
    ref: "1.2.2"
    file: "/templates/gitlab-ci-python.yml"

However I have no idea how the sync works with the Orange repo, and I'm thinking it's better to make all projects directly include the gitlab.com link for faster access to new functionnalities, what do you think, do you expect any issues, security or operational wise?

include:
  # Python template
  - remote: 'https://gitlab.com/to-be-continuous/python/-/raw/1.2.2/templates/gitlab-ci-python.yml'

Solution

  • To-be-continuous at Orange are syncronised every night with gitlab.com. So you don't miss any newer functionalities. My suggestion is to use 1st include, because our internal repo have more customisation for our needs like devops-store variant, ODE..