This commit is contained in:
caishi 2022-11-22 12:03:33 +08:00
commit 57c36dd3d4
1 changed files with 33 additions and 0 deletions

33
.trustie-pipeline.yml Normal file
View File

@ -0,0 +1,33 @@
kind: pipeline
type: docker
name: ssss
platform:
os: linux
arch: amd64
steps:
- name: 编译构建
image: gcc
commands:
- ./configure
- make
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
# 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:
- dev_chain
event:
- push