Check-Json template
Objective
This template is for check json validity, with jq lib.
How to use it
Add the following in your .gitlab-ci.yml
file.
As a remote Template (recommended)
Include the template:
include:
- remote: 'https://lab.frogg.it/beebryte/cicd/templates/check_json/-/raw/0.1.0/templates/check_json.yml'
Customize the job:
You can customize the job by overriding specific keys. For example:
check_json:
variables:
PROJECT_PATH: "path/to/my/project"
As a local Template (if the template is local to the instance):
include:
- project: 'beebryte/cicd/templates/check_json'
ref: '$CI_COMMIT_BRANCH$CI_COMMIT_TAG'
file: 'templates/check_json.yml'
inputs:
project_path: 'path/to/my/project'
Variables
Name | Description | Default |
---|---|---|
PROJECT_PATH |
The path to the project root directory. | "." |
Default values are from inputs. If you use this template as a local template, you can set the variables with inputs: (see 'How to use it' section)
Name | Description | Default |
---|---|---|
project_path |
The path to the project root directory. | "." |