From 8b94255e6194c9b7f6e481e395f2a695b38b0c02 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 5 Jan 2024 18:54:22 +0100 Subject: [PATCH] :( --- .woodpecker.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index eb57d8f..6344f92 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,8 +8,18 @@ steps: - zola build - ls -l deploy: - image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1.0.0@sha256:8af4ca908e27d32fcb7e51c1af3544d044bbde5e11a31abbb78363f63172a187 - settings: - folder: public - ssh_key: - from_secret: ssh_key \ No newline at end of file + image: alpine:3.19 + commands: + - apk add --no-cache git + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - echo $SSH_KEY > ~/.ssh/id_rsa + - git config --global user.email "ci@polynom.me" + - git config --global user.name "polynom.me CI system" + - git config --global --add safe.directory $CI_WORKSPACE/$CI_REPO_OWNER/$CI_REPO_NAME/deploy + - git clone -b pages $CI_REPO_CLONE_SSH_URL deploy + - cd deploy + - cp -rf ../public/* . + - git add --all + - git commit -m "Deploy new version $CI_COMMIT_SHA" + - git push -u origin pages \ No newline at end of file