.profile/.woodpecker.yml
Simon Vieille b84211d514
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
add ci
2023-07-26 19:05:29 +02:00

32 lines
837 B
YAML

steps:
rss:
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
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
- eval $(ssh-agent -s)
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
- git push origin main
when:
event: [push, deployment, cron]
# deploy:
# image: appleboy/drone-git-push
# commands:
# settings:
# branch: main
# remote: git@gitnet.fr:deblan/.profile.git
# force: false
# commit: false
# ssh_key:
# from_secret: ssh_priv_key
# when:
# event: [push, deployment, cron]