Is it possible to implement gitlab ci workflow without using any docker image? all the examples i see for gitlab runner are based on docker only. Even for production deployment.

How can I implement gitlab-ci and deployment process on my existing linux machines? On the production sever i want to deploy code run npm install if package.json modified and restart node instance

I want to use multiple runners and having docker image for each of it is resource consuming.


Yes, it is possible. You can use shell executor in gitlab-ci-multi-runner. Here is example how to register runner:

sudo gitlab-ci-multi-runner register -n \
  --url https://gitlab.com/ci \
  --registration-token REGISTRATION_TOKEN \
  --executor shell \
  --description "My Runner"

Then all your scripts specified in .gitlab-ci.yml file will be executed in the shell on behalf of gitlab-runner user. Here is detailed description of shell executor. And here is comparision of different executors in gitlab-ci-multi-runner.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.