:(
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
PapaTutuWawa 2024-01-05 18:54:22 +01:00
parent 4e2dcc1841
commit 8b94255e61

View File

@ -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
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