Skip to content

Automatic Gitlab CI/CD jobs Template


This template is designed to autodetect which jobs should be created. By including it within your project, the jobs will be automagically created for the pipeline.

Docs ToDo

  • document variables PIPELINE_RUN_TRIGGER: 'false' and PIPELINE_RUN_SCHEDULE: 'false' as being used as a gate to enable the jobs to run by the specified source.

Note

Docs Still under development

gitlab-ci.yml definition

.gitlab-ci.yml
# This gitlab-ci file is used for the autocreation of ci jobs.
# by including this file, the jobs will be autocreated if they are detected as required.

variables:
  NFC_AUTO_JOBS: 'true'

include:
  - local: $JOB_ROOT_DIR/.gitlab-ci_common.yaml

    # Chore
  - local: $JOB_ROOT_DIR/automation/.gitlab-ci-ansible.yaml

    # Validation
  - local: $JOB_ROOT_DIR/lint/ansible.gitlab-ci.yaml
  - local: $JOB_ROOT_DIR/conventional_commits/.gitlab-ci.yml

    # sync
  - local: $JOB_ROOT_DIR/git_push_mirror/.gitlab-ci.yml

    # release
  - local: $JOB_ROOT_DIR/gitlab_release/.gitlab-ci.yml

    # templates
  - local: $JOB_ROOT_DIR/template/ansible-role.gitlab-ci.yaml
  - local: $JOB_ROOT_DIR/template/docker-image.gitlab-ci.yaml
  - local: $JOB_ROOT_DIR/template/mkdocs-documentation.gitlab-ci.yaml


#
# Chores
#
Update Git Submodules:
  extends: .ansible_playbook_git_submodule

Search Issues for git patches:
  extends: .ansible_playbook_mr_from_issue_comment_patch

#
# Release
#
Gitlab Release:
  extends:
    - .gitlab_release


#
# Sync
#
Github (Push --mirror):
  extends:
    - .git_push_mirror
  needs: []

About:

This page forms part of our Project Gitlab-CI.

Page Metadata
Version: ToDo: place files short git commit here
Date Created: 2023-05-22
Date Edited: 2023-06-10

Contribution:

Would You like to contribute to our Gitlab-CI project? You can assist in the following ways:

 

ToDo: Add the page list of contributors