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