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

View File

@ -3,8 +3,7 @@ pipeline:
image: machines/ssh
commands:
- mkdir -p ~/.ssh
- echo $SSH_KEY > ~/.ssh/id_rsa
- echo "$PRIVKEY $privkey" > ~/.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 ]
secrets: [ privkey ]