diff --git a/.workflow/pipeline-vue.yml b/.workflow/pipeline-vue.yml new file mode 100644 index 00000000..ac273911 --- /dev/null +++ b/.workflow/pipeline-vue.yml @@ -0,0 +1,58 @@ +version: '1.0' +name: pipeline-vue +displayName: 部署前端 +triggers: + trigger: auto + push: + branches: + precise: + - master + commitMessages: + include: + - ^deploy-vue +stages: + - name: stage-3761fd9a + displayName: 构建前端 + strategy: naturally + trigger: auto + executor: + - kerwincui + steps: + - step: build@nodejs + name: build_nodejs + displayName: Nodejs 构建 + nodeVersion: 14.16.0 + commands: + - cd ./vue + - npm install && rm -rf ./dist && npm run build:prod + artifacts: + - name: BUILD_VUE + path: + - ./vue/dist + strategy: + retry: '0' + - name: stage-79a96375 + displayName: 部署前端 + strategy: naturally + trigger: auto + executor: + - kerwincui + steps: + - step: deploy@agent + name: deploy_agent + displayName: 主机部署 + hostGroupID: alicloud + deployArtifact: + - source: build + name: vue + target: ~/gitee_go/deploy + dependArtifact: BUILD_VUE + script: |- + # 请在此输入部署脚本,如启动Java应用如下 + # nohup java -jar test.jar > nohup.out & + echo 'Hello Gitee!' + strategy: + retry: '0' +permissions: + - role: admin + members: []