How to Configure CI/CD Component Needs?

Is there a good way to configure needs for a CI/CD Component?

Considering a job that publishes a package, for example. If you are using needs to manage job dependencies, then what is a good way to configure the publish job’s needs? Especially if there are possibly multiple jobs it could depend on. I don’t see a good way with spec:inputs to do this since you can use arrays as an input.

Has anyone dealt with this?

1 Like

yes, i met the same issue, i tested,

spec:
  inputs:
    needs:
      default: test

and the component would be

component-job-build-image:
  needs: [ "$[[ inputs.needs ]]" ]

the error happens. Maybe gitlab component still not support needs in component.

I found the solution Override configuration of a GitLab CI/CD Component - Stack Overflow