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