From d71bc4d38b311d4fb35e524e929593e60b3dff90 Mon Sep 17 00:00:00 2001 From: Renken Date: Tue, 24 Dec 2019 14:17:15 +0100 Subject: [PATCH] cicd: rsync build to shione on master changes --- .gitlab-ci.yml | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f2c00e0..b53b3fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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