Skip to content
Snippets Groups Projects
Verified Commit 47c42f8b authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

add usage to readme

parent 37de82a5
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,21 @@ ...@@ -3,7 +3,21 @@
The original SSH executor can only be used for a single/static host described The original SSH executor can only be used for a single/static host described
in the runner config. This is not as flexible as our use-case's needs. in the runner config. This is not as flexible as our use-case's needs.
# Install # Usage of the executor
```yaml
deploy:
stage: your deploy stage
tags: [kszk-deploy] # request the custom SSH executor
script: # your deploy logic
- cd /deploy
- docker-compose pull and run and everything
variables:
SSH_HOST: donald.sch.bme.hu # required
SSH_USER: kszk-gitlab-deployer # default: kszk-gitlab-deployer
SSH_PORT: 10122 # default: 22
```
# Install the executor
```sh ```sh
cd /opt cd /opt
git clone git@git.sch.bme.hu:kszk/opensource/ssh-executor.git ssh-executor git clone git@git.sch.bme.hu:kszk/opensource/ssh-executor.git ssh-executor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment