firecow / gitlab-ci-local

Tired of pushing to test your .gitlab-ci.yml?
MIT License
2.05k stars 118 forks source link

Implement --shell-executor-no-image #1171

Closed ANGkeith closed 3 months ago

ANGkeith commented 3 months ago

Currently when running the following gitlab-ci.yml,

foo:
  script:
    - echo 1

it runs as host, and i am hoping to update it to run the default ruby:3.1 https://docs.gitlab.com/ee/ci/runners/hosted_runners/linux.html#container-images

i would also like to introduce a new cli flag --host to ensure backward compatibility (for eg. [@Interactive](https://github.com/firecow/gitlab-ci-local?tab=readme-ov-file#the-interactive-decorator that only works when running in "host" mode).

I would like to implement this, are you open to this changes ?

firecow commented 3 months ago

Well... Could we make it opt-in, and then add it as default in 5.x.x

--shell-executor-no-image=true #change to false default in 5.x.x