.profile/.woodpecker.yml

32 lines
837 B
YAML
Raw Normal View History

2023-07-26 18:25:22 +02:00
steps:
rss:
2023-07-26 18:46:13 +02:00
image: alpine/git
2023-07-26 19:04:08 +02:00
secrets: [ssh_priv_key]
2023-07-26 18:25:22 +02:00
commands:
2023-07-26 18:46:13 +02:00
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
2023-07-26 18:25:22 +02:00
- apk add curl
2023-07-26 18:41:57 +02:00
- cp README.tpl.md README.md
- ./bin/rss -f https://www.deblan.io/RSS >> README.md
- cat README.md
2023-07-26 18:46:13 +02:00
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
2023-07-26 19:04:57 +02:00
- eval $(ssh-agent -s)
2023-07-26 19:04:08 +02:00
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
2023-07-26 19:05:29 +02:00
- git push origin main
2023-07-26 18:46:13 +02:00
when:
event: [push, deployment, cron]
2023-07-26 19:04:08 +02:00
# 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]