This commit is contained in:
parent
b84211d514
commit
e49725703e
|
@ -3,16 +3,23 @@ steps:
|
|||
image: alpine/git
|
||||
secrets: [ssh_priv_key]
|
||||
commands:
|
||||
- git config --global user.email ci@gitnet.fr
|
||||
- git config --global user.name CI
|
||||
- apk add curl
|
||||
- cp README.tpl.md README.md
|
||||
- ./bin/rss -f https://www.deblan.io/RSS >> README.md
|
||||
- cat README.md
|
||||
when:
|
||||
event: [push, deployment, cron]
|
||||
|
||||
push:
|
||||
image: alpine/git
|
||||
secrets: [ssh_priv_key]
|
||||
commands:
|
||||
- git config --global user.email ci@gitnet.fr
|
||||
- git config --global user.name CI
|
||||
- git add .
|
||||
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
|
||||
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
- git push origin main
|
||||
when:
|
||||
event: [push, deployment, cron]
|
||||
|
|
Loading…
Reference in a new issue