This commit is contained in:
parent
99888e8e78
commit
a899b050d2
|
@ -1,6 +1,7 @@
|
|||
steps:
|
||||
rss:
|
||||
image: alpine/git
|
||||
secrets: [ssh_priv_key]
|
||||
commands:
|
||||
- git config --global user.email ci@gitnet.fr
|
||||
- git config --global user.name CI
|
||||
|
@ -10,18 +11,19 @@ steps:
|
|||
- cat README.md
|
||||
- git add .
|
||||
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
||||
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
|
||||
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]
|
||||
# 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]
|
||||
|
|
Loading…
Reference in a new issue