chenlulouis

暴走笑话 杭州空调维修 杭州燃气灶维修 杭州洗衣机维修 上海ktv酒吧招聘 上海招聘 上海夜场招聘 上海夜场招聘

导航

.gitlab-ci.yml

stages:
- build
- test
- deploy
variables:
before_script:
- export ROOT_PATH=$(pwd)
- echo 'root path:' $ROOT_PATH
#- mkdir $PROJECT_REPO_NAME
#- cd $PROJECT_REPO_NAME
#- <some git manipulation here>
- echo 'date:' $DATE
#cache:
# paths:
# - .m2/repository
test_stage:
stage: test
script:
- echo "test starts..."
#- <test related command here>
artifacts:
paths:
- index.html
when: always
allow_failure: false
tags:
- we
build_stage:
stage: build
script:
- echo "build starts..."
- pwd
- cp -rf $(pwd) /usr/local/we
- cd /usr/local/we/we/user
- node -v
- npm config set registry https://registry.yarnpkg.com
- yarn install
- yarn run build
- echo "user build ends..."
- cd /usr/local/we/we/admin
- node -v
- npm config set registry https://registry.yarnpkg.com
- yarn install
- yarn run build
- echo "admin build ends..."
when: manual
allow_failure: false
tags:
- we
only:
- master
deploy:
stage: deploy
script:
- echo "deploy starts..."
#- <deploy related command here>
allow_failure: false
tags:
- we
only:
- master

posted on 2021-11-06 00:15  chenlulouis  阅读(14)  评论(0编辑  收藏  举报