You need to sign in or sign up before continuing.
Support component
include in Header::Include
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Support ability to read inputs from the yaml file in a component.
We already support regular include:component
.
The idea here is to support it in spec:include
as follows:
spec:
include:
- component: $CI_SERVER_FQDN/my-org/security-components/secret-detection@1.0
---
$[[ inputs.job_prefix ]]-test:
script:
- echo "Environment (should be inline-production):" $[[ inputs.environment ]]
- echo "Job prefix (inline only):" $[[ inputs.job_prefix ]]
- echo "App version (from external):" $[[ inputs.app_version ]]
- echo "Replicas (from external):" $[[ inputs.replicas ]]
Then the inputs defined in the component get merged with regular inputs in the main .gitlab-ci.yml
file.
Edited by 🤖 GitLab Bot 🤖