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