This commit is contained in:
parent
99888e8e78
commit
a899b050d2
1 changed files with 14 additions and 12 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue