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:40:19 +01:00
parent 42985ef2d8
commit 65b35c990c
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -11,7 +11,10 @@ steps:
commit:
image: alpine/git
secrets: [ssh_private_key]
commands:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
- git commit -m build -a
@ -21,9 +24,6 @@ steps:
- mv site /tmp/
- rm * -fr
- mv /tmp/site/* .
- 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