ssh key testing

This commit is contained in:
Arya Kiran 2022-09-12 22:12:09 +05:30
parent 60e52bf679
commit a401a931d0
No known key found for this signature in database
GPG Key ID: 3A6EA2D0EE314EEF
1 changed files with 1 additions and 0 deletions

View File

@ -5,5 +5,6 @@ pipeline:
- mkdir -p ~/.ssh
- echo $SSH_KEY > ~/.ssh/id_rsa
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa
- ssh websiteupdate@172.19.0.1 -p1813 -i ~/.ssh/id_rsa "cd /var/www/websitenew && git pull && git reset --hard origin/master"
secrets: [ ssh_key ]