Update '.trustie-pipeline.yml'

This commit is contained in:
raodi 2021-12-05 13:54:34 +08:00
parent c2a74d9989
commit 9d1b3b4d14
1 changed files with 36 additions and 1 deletions

View File

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