From c49c1a0a8b3b7fc86db6bbab09b8c134cf764cfb Mon Sep 17 00:00:00 2001 From: jasder duan Date: Tue, 8 Aug 2023 09:54:46 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E6=9B=B4=E9=83=A8=E7=BD=B2=E7=9A=84?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=AB=AF=E5=8F=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .trustie-pipeline.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 8ca4f39..2cb0d4c 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: 上传文件 @@ -21,12 +21,12 @@ steps: from_secret: deploy_name password: from_secret: deploy_pwd - port: 3522 + port: 22 command_timeout: 2m target: /opt/demo source: - target/*.war - - Dockerfile + - Dockerfile # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) # host、username、password可在参数管理中配置 - name: 远程主机部署 @@ -38,7 +38,7 @@ steps: from_secret: deploy_name password: from_secret: deploy_pwd - port: 3522 + port: 22 script: - echo ====暂停容器开始11======= - docker rm -f mo-test @@ -47,7 +47,7 @@ steps: - echo ====开始部署======= - docker build -t mo-test:1.0 . - docker run -d -p 8080:8080 --name mo-test mo-test:1.0 - - echo ====部署成功====== + - echo ====部署成功====== trigger: branch: - develop