From f2dcf76992b1e9f8a26f2370073f0becbccdbbcb Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Sat, 12 Nov 2022 08:01:54 -0500 Subject: [PATCH] try this --- .woodpecker.yml | 1 + deploy.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 2860d45..c75c5c6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -22,4 +22,5 @@ pipeline: commands: - mkdir -p ~/.ssh/ - echo "$SSH_KEY" > ~/.ssh/id_rsa + - cat ~/.ssh/id_rsa - bash deploy.sh diff --git a/deploy.sh b/deploy.sh index 7223ed4..c2dc2a7 100644 --- a/deploy.sh +++ b/deploy.sh @@ -2,6 +2,7 @@ export GIT_AUTHOR_NAME="${GIT_AUTHOR_NAME}" export GIT_AUTHOR_EMAIL="${GIT_AUTHOR_EMAIL}" +export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" REMOTE="${PUSH_REMOTE:-git@git.shrug.pw:neil/neilhanlon.me.git}" @@ -20,6 +21,7 @@ EOF cd pages.git +set -x git config user.name "$GIT_AUTHOR_NAME" git config user.email "$GIT_AUTHOR_EMAIL" git add -A