add ci to deploy on gitnet.page
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2024-01-23 13:01:02 +01:00
parent 63a732c499
commit a5ef7a982c
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -9,15 +9,24 @@ steps:
fi
mkdocs build
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
push:
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
settings:
folder: site
git_config_name: 'Woodpecker CI'
git_config_email: 'woodpecker@cicd'
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