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:39:03 +01:00
parent 68edabf1ad
commit 42985ef2d8
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -21,10 +21,9 @@ steps:
- mv site /tmp/
- rm * -fr
- mv /tmp/site/* .
- mkdir ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- chmod -R 400 ~/.ssh
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir ~/.ssh && ~/.ssh/known_hosts && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config && chmod -R 400 ~/.ssh
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
- git push upstream pages