Skip to content

Support inputs in Header::Include

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

We already support inputs keyword in regular include keyword.

The proposal for this issue is to check and implement if we can support inputs inside of spec:include. Such as follows:

spec:
  include:
    - local: '/ci/inputs.yml'
    - inputs:
        job_prefix:
          description: "Prefix for job names (inline)"
          default: "inline"
        environment:
          default: "production"  # This should override external
---


$[[ 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 ]]
Edited by 🤖 GitLab Bot 🤖