CI/CD

Setup

Include the Andtechstudios CI/CD files in pipeline configuration.

GitLab SaaS users can simply use include:file with include:project. For example:

include:
  project: andtechstudios/ci
  file: workflows/unity/build.yml

Self-hosted users must use include:remote. Then, use the complete HTTPS url to the desired YAML file:

include:
  remote: https://ci.andtechstudios.com/workflows/unity/build.yml

Now, the YAML will be available in your pipeline configuration:

Build:
  stage: build
  extends: .workflows/unity/build   # this job is from workflows/unity/build.yml

Using Rules

Rules are used to control when your jobs run. We provide several common rules:

include:
  project: andtechstudios/ci
  file:
    - default-branch/always.yml
    - default-branch/merge-request/always.yml

My Job:
  stage: build
  rules:
    - !reference [.default-branch/always, rules]
    - !reference [.default-branch/merge-request/always, rules]