starcloud-sdk-uniapp/.gitlab-ci.yml
XieHaoLiang ed093f02f5 fix
2024-12-27 09:23:12 +08:00

53 lines
1.1 KiB
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
after_script:
- cd ${COMPOSE_PATH} && env | docker-compose exec -T -w /webroot/${WEBROOT_PATH##*/}/starapt php php artisan deploy:notice
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