add ci
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2023-07-26 19:08:00 +02:00
parent b84211d514
commit e49725703e
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -3,16 +3,23 @@ steps:
image: alpine/git
secrets: [ssh_priv_key]
commands:
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
- apk add curl
- cp README.tpl.md README.md
- ./bin/rss -f https://www.deblan.io/RSS >> README.md
- cat README.md
when:
event: [push, deployment, cron]
push:
image: alpine/git
secrets: [ssh_priv_key]
commands:
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
- eval $(ssh-agent -s)
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- git push origin main
when:
event: [push, deployment, cron]