cicd: rsync build to shione on master changes
This commit is contained in:
parent
d84e5d26db
commit
d71bc4d38b
1 changed files with 4 additions and 20 deletions
|
@ -43,13 +43,13 @@ review:
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
only:
|
only:
|
||||||
- branches@shione/shione
|
- master
|
||||||
dependencies:
|
dependencies:
|
||||||
- sphinx_html
|
- sphinx_html
|
||||||
image: registry.git.mel.vin/shione/shione/cicd/coreutils:0.0
|
image: registry.git.mel.vin/shione/shione/cicd/coreutils:0.0
|
||||||
environment:
|
environment:
|
||||||
name: review/$CI_COMMIT_REF_NAME
|
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
|
on_stop: review_stop
|
||||||
script:
|
script:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
|
@ -57,7 +57,7 @@ review:
|
||||||
- eval $(ssh-agent)
|
- eval $(ssh-agent)
|
||||||
- echo "$DOC_SSH_KEY" | ssh-add - > /dev/null
|
- echo "$DOC_SSH_KEY" | ssh-add - > /dev/null
|
||||||
- mv build/doc/html public
|
- 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:
|
review_stop:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -75,21 +75,5 @@ review_stop:
|
||||||
- eval $(ssh-agent)
|
- eval $(ssh-agent)
|
||||||
- echo "$DOC_SSH_KEY" | ssh-add - > /dev/null
|
- echo "$DOC_SSH_KEY" | ssh-add - > /dev/null
|
||||||
- mkdir /tmp/empty
|
- mkdir /tmp/empty
|
||||||
- rsync -a --delete --filter="+ $CI_ENVIRONMENT_SLUG" --filter='-,p *'
|
- rsync -a --delete /tmp/empty/ 'web@shione.vermwa.re:'
|
||||||
/tmp/empty/ doc@mel.vin:~/template/doc
|
|
||||||
- rmdir /tmp/empty
|
- 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
|
|
||||||
|
|
Loading…
Reference in a new issue