Skip to content
Snippets Groups Projects
Unverified Commit 869c44cb authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

docs: adds documentation about using inputs

Adds documentation for using inputs.
parent 21194556
No related branches found
No related tags found
No related merge requests found
Pipeline #16933320 passed
[`templates/golang.yml`](./templates/golang.yml)
# [`templates/golang.yml`](./templates/golang.yml)
 
This template should be used for Golang projects.
 
Loading
Loading
@@ -29,3 +29,22 @@ include:
ref: v1.73.0 # renovate:managed
file: templates/golang.yml
```
## Overriding Stages
You can override the stages that a CI/CD job runs in [using inputs](https://docs.gitlab.com/ee/ci/yaml/includes.html#define-input-parameters-with-specinputs).
```yaml
include:
- local: .gitlab-ci-asdf-versions.yml
# This template should be included in all Infrastructure projects.
# It includes standard checks, gitlab-scanners, validations and release processes
# common to all projects using this template library.
# see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/standard.md
- project: "gitlab-com/gl-infra/common-ci-tasks"
ref: v1.73.0 # renovate:managed
file: templates/golang.yml
inputs:
validate_stage: test # stage that validation jobs should run in
release_stage: deploy # stage that release jobs should run in
```
Loading
Loading
@@ -15,7 +15,7 @@ Includes the following tasks:
1. [`yamllint.yml`](../yamllint.md): validates that YAML matches the YAML formatting rules for the project.
 
```yaml
# Requires stages validate and release
# Requires stages validate, release and renovate_bot
stages:
- validate
- release
Loading
Loading
@@ -31,3 +31,23 @@ include:
ref: v1.73.0 # renovate:managed
file: templates/standard.yml
```
## Overriding Stages
You can override the stages that a CI/CD job runs in [using inputs](https://docs.gitlab.com/ee/ci/yaml/includes.html#define-input-parameters-with-specinputs).
```yaml
include:
- local: .gitlab-ci-asdf-versions.yml
# This template should be included in all Infrastructure projects.
# It includes standard checks, gitlab-scanners, validations and release processes
# common to all projects using this template library.
# see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/standard.md
- project: "gitlab-com/gl-infra/common-ci-tasks"
ref: v1.73.0 # renovate:managed
file: templates/standard.yml
inputs:
validate_stage: test # stage that validation jobs should run in
release_stage: deploy # stage that release jobs should run in
renovate_bot_stage: test # stage that renovate should run in
```
Loading
Loading
@@ -31,3 +31,21 @@ include:
ref: v1.73.0 # renovate:managed
file: templates/terraform.yml
```
## Overriding Stages
You can override the stages that a CI/CD job runs in [using inputs](https://docs.gitlab.com/ee/ci/yaml/includes.html#define-input-parameters-with-specinputs).
```yaml
include:
- local: .gitlab-ci-asdf-versions.yml
# This template should be included in all Infrastructure projects.
# It includes standard checks, gitlab-scanners, validations and release processes
# common to all projects using this template library.
# see https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/templates/standard.md
- project: "gitlab-com/gl-infra/common-ci-tasks"
ref: v1.73.0 # renovate:managed
file: templates/terraform.yml
inputs:
validate_stage: test # stage that validation jobs should run in
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment