murph-doc/.woodpecker.yml
Simon Vieille 9cc7575277
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
add ci to deploy on gitnet.page
2024-01-23 13:10:34 +01:00

31 lines
865 B
YAML

steps:
build:
image: gitnet.fr/deblan/mkdocs
environment:
- SITE_URL=https://doc.murph-project.org/
commands: |
if [ -n "$SITE_URL" ]; then
sed -i "s,# site_url: \"{site_url}\",site_url: \"$SITE_URL\"," mkdocs.yml
fi
mkdocs build
push:
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
settings:
folder: ${CI_WORKSPACE}/site
ssh_key:
from_secret: ssh_key
#deploy:
# image: eeacms/rsync
# secrets: [ssh_user_host, ssh_priv_key]
# commands:
# - mkdir "$HOME/.ssh"
# - echo "$SSH_PRIV_KEY" > "$HOME/.ssh/id_ed25519"
# - chmod 700 "$HOME/.ssh"
# - chmod 600 "$HOME/.ssh/id_ed25519"
# - rsync -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" -avz --delete ./site/ "$SSH_USER_HOST:web/"
# when:
# branch:
# - master