9

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.

gaurang171
  • 191
  • 1
  • 2

1 Answers1

9

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.

Grayver
  • 191
  • 1
  • 3