starcloud-sdk-uniapp/.gitlab-ci.yml
2024-12-27 09:10:55 +08:00

51 lines
940 B
YAML

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