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