V
V
Vladimir Kuts2018-12-20 16:53:33
GitLab
Vladimir Kuts, 2018-12-20 16:53:33

Problem with gitlab-runner?

I create .gitlab-ci.yml I write
something like this in it:

stages:
    - deploy_remote_prod

deploy_remote_prod:
   stage: deploy_remote_prod
   only:
      - master
   tags:
      - my-production-runner
   script:
      - ssh -i /srv/gitlab-runner/config/keys/some.key [email protected] '<run some command> || true'

For the repository I use ssh-runner
Kommich - I get the result:
Running with gitlab-runner 10.7.2 (b5e03c94)
  on dev runner 076f0431
Using SSH executor...
Running on dev_server_someserver via 14b41f4da93f...
Cloning repository...
Cloning into 'builds/076f0431/0/user/SomeRepo'...
remote: You are not allowed to download code from this project.
fatal: unable to access 'http://gitlab-ci-token:[email protected]/user/SomeRepo.git/': The requested URL returned error: 403
ERROR: Job failed: Process exited with: 1. Reason was:  ()

First - where does he get this url from?
http://gitlab-ci-token:[email protected]
if I need, for example, to get the runner from git://[email protected]:user/SomeRepo.git ?
Secondly - where should he register the key so that the runner can pull off the build without problems?

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