V
V
vorobyeval2021-01-10 23:04:32
GitLab
vorobyeval, 2021-01-10 23:04:32

Why does gitlab-runner run ruby's docker executor even though shell is specified?

Here is the gitlab-ci file

stages:
  - deploy
deploy:
  stage: deploy
  script:
    - npm install
    - npm run build
    - cp -R build/* /var/www/html


when pushing, it launches a pipeline in which
Preparing the "docker+machine" executor
00:28
Using Docker executor with image ruby:2.5 ...

because of this, the runner does not see npm
npm install
/bin/bash: line 110: npm: command not found

Here is the config file from the server config.toml
concurrent = 1
check_interval = 0

[session_server]
session_timeout = 1800


name = "test"
url = " https://gitlab.com/ "
token = "123321123"
executor = "shell"
shell = "bash"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.cache.azure]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question