I
I
ince2020-11-15 14:47:28
SSH
ince, 2020-11-15 14:47:28

How to ci gitlab over ssh?

Guys, tell me, please, .gitlab-ci.yml
what do I need to register there so that gitlab stupidly connects to me via ssh and runs a certain bash script on it.
Gitlab-runner installed, did everything according to the instructions, but it’s not clear with the connection via ssh .
The instructions spell out everything about the option with the docker, but without it there is almost nothing.
Now I have written this:

deploy:
  script:
    - echo 'test'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Vasilyev, 2020-11-15
@ince

deploy:
  script:
    - echo 'test'
    - ./script.sh

Naturally, there should be an appropriate flag on the
chmod +x script

S
SlavikF, 2020-11-16
@SlavikF

This is not a CI job issue, but a runner issue.
Gitlab is giving away some free Docker runner minutes.
And you need to connect a runner that works via 'shell' or 'ssh'.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question