.profile/.woodpecker.yml

36 lines
1,016 B
YAML
Raw Normal View History

2023-07-26 18:25:22 +02:00
steps:
2023-07-27 13:09:51 +02:00
push:
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:
- 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
2023-07-27 13:09:51 +02:00
- cat README.md
2023-07-27 13:12:57 +02:00
- git status
2023-07-26 19:08:00 +02:00
- git config --global user.email ci@gitnet.fr
- git config --global user.name CI
2023-07-26 18:46:13 +02:00
- git add .
- git commit -m "Build ${CI_BUILD_NUMBER}"
2023-07-27 13:06:20 +02:00
- mkdir -p ~/.ssh
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:08:00 +02:00
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
2023-07-27 13:07:46 +02:00
- git remote add repo git@gitnet.fr:deblan/.profile.git
- git push repo 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]