Change .woodpecker.yml for upgrade
ci/woodpecker/push/woodpecker Pipeline failed Details

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-11-22 20:08:22 -05:00
parent 46e914d046
commit a4cbe87acd
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 7 additions and 4 deletions

View File

@ -1,10 +1,13 @@
pipeline:
master:
image: machines/ssh
steps:
init_ssh:
image: machines/local
commands:
- mkdir -p ~/.ssh
- echo "$PRIVKEY" > ~/.ssh/id_rsa
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
- 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 ]
update:
image: machines/local
commands:
- 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"