cicd: rsync build to shione on master changes

This commit is contained in:
Renken 2019-12-24 14:17:15 +01:00 committed by Renken
parent d84e5d26db
commit d71bc4d38b
No known key found for this signature in database
GPG key ID: 3D24CB017B876F25

View file

@ -43,13 +43,13 @@ review:
variables:
GIT_STRATEGY: none
only:
- branches@shione/shione
- master
dependencies:
- sphinx_html
image: registry.git.mel.vin/shione/shione/cicd/coreutils:0.0
environment:
name: review/$CI_COMMIT_REF_NAME
url: https://doc.mel.vin/template/doc/$CI_ENVIRONMENT_SLUG
url: https://shione.vermwa.re
on_stop: review_stop
script:
- mkdir -p ~/.ssh
@ -57,7 +57,7 @@ review:
- eval $(ssh-agent)
- echo "$DOC_SSH_KEY" | ssh-add - > /dev/null
- mv build/doc/html public
- rsync -a --delete public/ doc@mel.vin:~/template/doc/$CI_ENVIRONMENT_SLUG
- rsync -a --delete public/ 'web@shione.vermwa.re:'
review_stop:
stage: deploy
@ -75,21 +75,5 @@ review_stop:
- eval $(ssh-agent)
- echo "$DOC_SSH_KEY" | ssh-add - > /dev/null
- mkdir /tmp/empty
- rsync -a --delete --filter="+ $CI_ENVIRONMENT_SLUG" --filter='-,p *'
/tmp/empty/ doc@mel.vin:~/template/doc
- rsync -a --delete /tmp/empty/ 'web@shione.vermwa.re:'
- rmdir /tmp/empty
pages:
stage: deploy
variables:
GIT_STRATEGY: none
only:
- tags@shione/shione
dependencies:
- sphinx_html
image: registry.git.mel.vin/shione/shione/cicd/coreutils:0.0
script:
- mv build/doc/html public
artifacts:
paths:
- public