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

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

View file

@ -1,6 +1,7 @@
steps: steps:
rss: rss:
image: alpine/git image: alpine/git
secrets: [ssh_priv_key]
commands: commands:
- git config --global user.email ci@gitnet.fr - git config --global user.email ci@gitnet.fr
- git config --global user.name CI - git config --global user.name CI
@ -10,18 +11,19 @@ steps:
- cat README.md - cat README.md
- git add . - git add .
- git commit -m "Build ${CI_BUILD_NUMBER}" - git commit -m "Build ${CI_BUILD_NUMBER}"
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
when: when:
event: [push, deployment, cron] event: [push, deployment, cron]
deploy: # deploy:
image: appleboy/drone-git-push # image: appleboy/drone-git-push
commands: # commands:
settings: # settings:
branch: main # branch: main
remote: git@gitnet.fr:deblan/.profile.git # remote: git@gitnet.fr:deblan/.profile.git
force: false # force: false
commit: false # commit: false
ssh_key: # ssh_key:
from_secret: ssh_priv_key # from_secret: ssh_priv_key
when: # when:
event: [push, deployment, cron] # event: [push, deployment, cron]