diff --git a/.trustie-pipeline.yml b/.trustie-pipeline.yml index 9d7e07e..f123494 100644 --- a/.trustie-pipeline.yml +++ b/.trustie-pipeline.yml @@ -1,5 +1,10 @@ -qqqq +kind: pipeline +type: docker +name: s +platform: + os: linux + arch: amd64 steps: - name: 编译构建 image: python @@ -7,19 +12,16 @@ steps: - pip install -r requirements.txt # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) # host、username、password可在参数管理中配置 -- name: 远程主机部署 +- name: ssh commands image: appleboy/drone-ssh settings: - host: - from_secret: ip - username: - from_secret: name - password: - from_secret: pwd + host: foo.com + username: root + password: 1234 port: 22 script: - - chmod +x /home/deploy.sh - - ./home/deploy.sh + - echo hello + - echo world trigger: branch: - master