From c66c4ffc3d4137401799217b83b891cb1b2d9460 Mon Sep 17 00:00:00 2001 From: rcore_test Date: Mon, 30 May 2022 09:09:43 +0800 Subject: [PATCH] Update '.trustie-pipeline.yml' --- .trustie-pipeline.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 7db21eee..918fb387 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -9,23 +9,19 @@ steps: - name: rcore image: jmgcs65536/rcore:latest commands: - - cd os && make build + - docker pull jmgcs65536/rcore:latest # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) # host、username、password可在参数管理中配置 - name: 远程主机部署 image: jmgcs65536/rcore:latest settings: - host: - from_secret: ip - username: - from_secret: name - password: - from_secret: pwd - port: 22 script: - - chmod +x /home/deploy.sh - - ./home/deploy.sh + - echo docker run + - docker pull jmgcs65536/rcore:latest + - docker run -d -p 8080:8080 -v &PWD:/tmp jmgcs65536/rcore:latest + - cd tmp/os && make run + - echo 部署成功 trigger: branch: - ch1