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