Reset first, then pull

This commit is contained in:
Arya Kiran 2022-09-13 16:30:00 +05:30
parent db02c6de9a
commit 94811b8cae
No known key found for this signature in database
GPG Key ID: 3A6EA2D0EE314EEF
1 changed files with 1 additions and 1 deletions

View File

@ -5,5 +5,5 @@ pipeline:
- mkdir -p ~/.ssh
- echo "$PRIVKEY $privkey" > ~/.ssh/id_rsa
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
- ssh websiteupdate@172.19.0.1 -p1813 -i ~/.ssh/id_rsa "cd /var/www/blog && git config pull.rebase true && git pull && git reset --hard origin/master && make"
- ssh websiteupdate@172.19.0.1 -p1813 -i ~/.ssh/id_rsa "cd /var/www/blog && git reset --hard origin/master && git config pull.rebase true && git pull && make"
secrets: [ privkey ]