Forum

Gitlab CI/CD, gitla...
 
Notifications
Clear all

Gitlab CI/CD, gitlab-ci: automatic ssh with success return code

1 Posty
1 Users
0 Likes
666 Widok
0
Topic starter

example

1 Answer
0
Topic starter
deploy:
    image: my_secret_docker/yes:latest
    script:
      - ssh -o StrictHostKeyChecking=no -T -i /my_private_key -p '1022' 'remoteusername@remote_host_address' "cd /var/www/;  git pull;echo $?"

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: