diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index f2e056f..24a6a04 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1,15 +1,15 @@ - + kind: pipeline type: docker name: 开发流水线 platform: os: linux - arch: amd64 -steps: + arch: amd64 +steps: - name: maven image: maven:3-jdk-10 commands: - - mvn install -DskipTests=true + - mvn install -DskipTests=true # 本模板示例为上传软件包和部署脚本到home目录 # host、username、password可在参数管理中配置 - name: 上传文件 @@ -26,7 +26,7 @@ steps: target: /opt/demo source: - target/*.war - - Dockerfile + - Dockerfile # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) # host、username、password可在参数管理中配置 - name: 远程主机部署 @@ -47,9 +47,4 @@ steps: - echo ====开始部署======= - docker build -t mo-test:1.0 . - docker run -d -p 8080:8080 --name mo-test mo-test:1.0 - - echo ====部署成功====== -trigger: - branch: - - master - event: - - push + - echo ====部署成功======