From 1f6eee9b7d4f3f79aa3641416f745375504750fa Mon Sep 17 00:00:00 2001 From: XieHaoLiang <806854015@qq.com> Date: Fri, 27 Dec 2024 09:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=81=E6=B0=B4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..65b65cb --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,50 @@ +variables: + PROJECT_DIR: "starcloud-sdk-uniapp" + +stages: + - deploy + +update-code-dev: + rules: + - if: '$CI_COMMIT_BRANCH == "web-develop"' + stage: deploy + tags: + - deploy + - dev + variables: + GIT_STRATEGY: none + script: + - cd ${WEBROOT_PATH}/${PROJECT_DIR} && git pull +update-code-pre: + rules: + - if: '$CI_COMMIT_BRANCH == "web-release"' + stage: deploy + tags: + - deploy + - pre + variables: + GIT_STRATEGY: none + script: + - cd ${WEBROOT_PATH}/${PROJECT_DIR} && git pull +update-code-xhj: + rules: + - if: '$CI_COMMIT_BRANCH == "web-master"' + stage: deploy + tags: + - deploy + - xhj + variables: + GIT_STRATEGY: none + script: + - cd ${WEBROOT_PATH}/${PROJECT_DIR} && git pull +update-code-sky: + rules: + - if: '$CI_COMMIT_BRANCH == "web-master"' + stage: deploy + tags: + - deploy + - sky + variables: + GIT_STRATEGY: none + script: + - cd ${WEBROOT_PATH}/${PROJECT_DIR} && git pull