mdubourg001 / glci

🦊 Test your Gitlab CI Pipelines changes locally using Docker.
571 stars 16 forks source link

Cannot read property 'indexOf' of undefined #19

Closed MarcelHoell closed 3 years ago

MarcelHoell commented 3 years ago

If I run glci locally on Windows, I get the following error:

TypeError: Cannot read property 'indexOf' of undefined
✘  - default
alexymik commented 3 years ago

I had the same error and in my case this was due to not having an image set in .gitlab-ci.yml. I tried to use gitlab/gitlab-runner but that returned a separate error. My setup uses a docker-compose.yml that pulls in multiple images in various stages.

weyert commented 3 years ago

yeah, had the same, i fixed the issue where you had it defined as image.name

mdubourg001 commented 3 years ago

There was an issue in the way I determined the image to use for a job.

Should be fixed in https://github.com/mdubourg001/glci/releases/tag/v0.1.1.

Thanks for reporting this !