found the right ip

This commit is contained in:
Arya Kiran 2022-10-06 22:52:27 +05:30
parent b213120165
commit cf16cf8804
No known key found for this signature in database
GPG Key ID: 3A6EA2D0EE314EEF
1 changed files with 1 additions and 2 deletions

View File

@ -5,6 +5,5 @@ pipeline:
- mkdir -p ~/.ssh
- echo "$PRIVKEY $privkey" > ~/.ssh/id_rsa
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
- apt update -y && apt install -y iproute2 && ip a
- ssh websiteupdate@172.19.0.1 -i ~/.ssh/id_rsa "cd /websiteupdate/website && git reset --hard origin/master && git config pull.rebase true && git pull"
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_rsa "cd /websiteupdate/website && git reset --hard origin/master && git config pull.rebase true && git pull"
secrets: [ privkey ]