This commit is contained in:
parent
42985ef2d8
commit
65b35c990c
|
@ -11,7 +11,10 @@ steps:
|
|||
|
||||
commit:
|
||||
image: alpine/git
|
||||
secrets: [ssh_private_key]
|
||||
commands:
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
- git config --global user.email ci@gitnet.fr
|
||||
- git config --global user.name CI
|
||||
- git commit -m build -a
|
||||
|
@ -21,9 +24,6 @@ steps:
|
|||
- mv site /tmp/
|
||||
- rm * -fr
|
||||
- mv /tmp/site/* .
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||
- mkdir ~/.ssh && ~/.ssh/known_hosts && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config && chmod -R 400 ~/.ssh
|
||||
- git add .
|
||||
- git commit -m "Build ${CI_BUILD_NUMBER}"
|
||||
- git push upstream pages
|
||||
|
|
Loading…
Reference in a new issue