GitLab CI/CD Component fail with jobs specs config should implement a script: or a trigger: keyword

Problem to solve

I’m experimenting with the new / beta GitLab CI/CD Component. I created a new repository at Raniere Silva / build-push-docker · GitLab and prepared a small component to build and push Docker images. I’m trying to run the new component but GitLab is saying that my CI/CD configuration is invalid due

jobs specs config should implement a script: or a trigger: keyword

How can I solve this error? Thanks!

After a night of sleep, I figured out the error. Components heading should have spec (singular) instead of specs (plural).

The documentation has specs (plural) in some parts, for example CI/CD YAML syntax reference | GitLab

This was the source of my mistake.

Thank you for raising this bug in our docs. I’ve just opened a merge request to fix it: Fix typos that use `specs` instead of `spec` keyword (!147538) · Merge requests · GitLab.org / GitLab · GitLab

1 Like

@fabiopitino Awesome. We sent a merge request almost at the same time. Fix typo in CI/CD YAML syntax reference (!147531) · Merge requests · GitLab.org / GitLab · GitLab