devopsTest/.trustie-pipeline.yml

29 lines
537 B
YAML

kind: pipeline
type: docker
name: 开发1
platform:
os: linux
arch: arm64
steps:
# 根据实际情况修改主机ip、账号、密码
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: ip
username:
from_secret: name
password:
from_secret: pwd
port: 22
script:
- echo '12332' >> /home/12.txt
trigger:
branch:
- master
event:
- push