From 33572644db1029a9fa09285295bfb113e5ad3b45 Mon Sep 17 00:00:00 2001 From: Josh Morgenstern <josh@morgenstern.dev> Date: Mon, 17 May 2021 23:43:55 +0200 Subject: [PATCH] [#25] add deployment to webserver --- .gitlab-ci.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 47efce42..37c5b12e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,8 +34,27 @@ build_win10_msvc: - cd debug - cmake -DCMAKE_BUILD_TYPE=Debug .. - cmake --build . - -deploy_doc_web: + +deploy_doc_develop: + only: + refs: + - develop + stage: deploy + needs: ["build_ubuntu_gcc"] + dependencies: + - build_ubuntu_gcc + tags: + - webserver + variables: + GIT_STRATEGY: none + script: + - mv /doc/html /html + - chown 33:33 /html -R + +deploy_doc_branch: + except: + refs: + - develop stage: deploy needs: ["build_ubuntu_gcc"] dependencies: @@ -45,5 +64,6 @@ deploy_doc_web: variables: GIT_STRATEGY: none script: - - echo $CI_COMMIT_BRANCH - - ls \ No newline at end of file + - mv /doc/html /html/branch/$CI_COMMIT_BRANCH + - chown 33:33 /html/branch/$CI_COMMIT_BRANCH -R + -- GitLab