From 63a5285aaf9dd10e15e83e656eb548165d0d476c Mon Sep 17 00:00:00 2001 From: "Skylar \"The Cobra\" Widulski" Date: Wed, 22 Nov 2023 20:11:46 -0500 Subject: [PATCH] can't separate the steps Signed-off-by: Skylar "The Cobra" Widulski --- .woodpecker.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3f62139..cd36de1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,13 +1,9 @@ steps: - init_ssh: + update: image: machines/ssh commands: - mkdir -p ~/.ssh - echo "$PRIVKEY" > ~/.ssh/id_rsa - chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa - secrets: [ privkey ] - update: - image: machines/ssh - 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" - + secrets: [ privkey ]