devopsTest/.trustie-pipeline.yml

29 lines
537 B
YAML
Raw Permalink Normal View History

2021-02-01 16:34:42 +08:00
2021-01-06 13:49:07 +08:00
kind: pipeline
type: docker
2021-02-02 17:24:32 +08:00
name: 开发1
2021-01-06 13:49:07 +08:00
platform:
os: linux
2021-02-02 12:06:30 +08:00
arch: arm64
2021-01-19 19:04:09 +08:00
steps:
2021-03-05 09:13:23 +08:00
# 根据实际情况修改主机ip、账号、密码
# 需要将软件包与部署脚本提前上传到远程主机(见文件上传模板)
- name: 远程主机部署
image: appleboy/drone-ssh
settings:
host:
from_secret: ip
username:
from_secret: name
password:
from_secret: pwd
port: 22
2021-03-05 09:15:26 +08:00
script:
2021-03-05 09:14:35 +08:00
- echo '12332' >> /home/12.txt
2021-02-01 16:34:42 +08:00
trigger:
branch:
- master
event:
- push