Gitlab-ci deployment without Docker for nodeJs applicaiton?

6,718

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.

Share:
6,718

Related videos on Youtube

gaurang171
Author by

gaurang171

Updated on September 18, 2022

Comments

  • gaurang171
    gaurang171 over 1 year

    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.