From ca1d93a4436a2c749b6c074f1a7a3458fad4ea2e Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Sat, 12 Nov 2022 07:52:21 -0500 Subject: [PATCH] try with a key --- .woodpecker.yml | 3 ++- deploy.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 833dd1c..25f0019 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -15,9 +15,10 @@ pipeline: publish: image: git.shrug.pw/neil/containers/woodpecker-ci:latest + secrets: [ssh_key] environment: - GIT_AUTHOR_NAME="Woody the Woodpecker" - GIT_AUTHOR_EMAIL=ci@shrug.pw commands: + - eho "$SSH_KEY" > ~/.ssh/id_rsa - bash deploy.sh - diff --git a/deploy.sh b/deploy.sh index 7223ed4..8e1abd2 100644 --- a/deploy.sh +++ b/deploy.sh @@ -3,7 +3,7 @@ export GIT_AUTHOR_NAME="${GIT_AUTHOR_NAME}" export GIT_AUTHOR_EMAIL="${GIT_AUTHOR_EMAIL}" -REMOTE="${PUSH_REMOTE:-git@git.shrug.pw:neil/neilhanlon.me.git}" +REMOTE="${CI_REPO_REMOTE}" rm -fr pages.git mkdir pages.git