From 1aad1140ed55bea724b68fa7a41dc815b0a05575 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Tue, 13 Sep 2022 15:56:33 +0530 Subject: [PATCH] can reset --hard now that blog/ is gitignore This reverts commit c892108151ac9daf4bffb13832a521e97a68575a. --- .woodpecker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 229ae25..f10e2c2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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/websitenew && git config pull.rebase true && git pull" + - ssh websiteupdate@172.19.0.1 -p1813 -i ~/.ssh/id_rsa "cd /var/www/websitenew && git config pull.rebase true && git pull && git reset --hard origin/master" secrets: [ privkey ]