Update .trustie-pipeline.yml
continuous-integration/drone/push Build is failing Details

develop
jasder 3 weeks ago
parent 0c64acfca8
commit 50fae55327

@ -1,32 +1,31 @@
kind: pipeline
kind: pipeline type: docker
type: docker name: deploy
name: deploy platform:
platform: os: linux
os: linux
arch: amd64 arch: amd64
steps: steps:
- name: maven - name: maven
image: maven:3-jdk-10 image: maven:3-jdk-10
commands: commands:
- mvn install -DskipTests=true - mvn install -DskipTests=true
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板) # 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# host、username、password可在参数管理中配置 # host、username、password可在参数管理中配置
- name: 远程主机部署 - name: 远程主机部署
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: host:
from_secret: ip from_secret: ip
username: username:
from_secret: name from_secret: name
password: password:
from_secret: pwd from_secret: pwd
port: 22 port: 22
script: script:
- chmod +x /home/deploy.sh - chmod +x /home/deploy.sh
- ./home/deploy.sh - ./home/deploy.sh
trigger: trigger:
branch: branch:
- main - main
event: event:
- push - push

Loading…
Cancel
Save