.profile/.woodpecker.yml
Simon Vieille 69bcbc8700
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
add ci
2023-07-27 13:07:46 +02:00

41 lines
1.1 KiB
YAML

steps:
rss:
image: alpine/git
secrets: [ssh_priv_key]
commands:
- apk add curl
- cp README.tpl.md README.md
- ./bin/rss -f https://www.deblan.io/RSS >> 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}"
- mkdir -p ~/.ssh
- eval $(ssh-agent -s)
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- git remote add repo git@gitnet.fr:deblan/.profile.git
- git push repo 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]