Separate pull and build in woodpecker conf
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-12-17 05:09:47 -05:00
parent e2cccaaf56
commit 6024a23f80
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 9 additions and 1 deletions

View File

@ -5,5 +5,13 @@ steps:
- mkdir -p ~/.ssh
- echo "$PRIVKEY" > ~/.ssh/id_ed25519
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_ed25519 "cd /websiteupdate/wiki && git reset --hard origin/master && git config pull.rebase true && git pull && nix-shell -p gnumake -p pandoc --run make"
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_ed25519 "cd /websiteupdate/wiki && git reset --hard origin/master && git config pull.rebase true && git pull"
secrets: [ privkey ]
build:
image: machines/ssh
commands:
- mkdir -p
- echo "$PRIVKEY" > ~/.ssh/id_ed25519
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_ed25519
- ssh websiteupdate@172.17.0.1 -i ~/.ssh/id_ed25519 "nix-shell -p gnumake -p pandoc --run make"
secrets: [ privkey ]