提交 drone 文件 7

This commit is contained in:
BryantHe 2022-06-14 19:37:04 +08:00
parent 803ea825c8
commit ad937f0d5b
1 changed files with 13 additions and 13 deletions

View File

@ -20,16 +20,16 @@ steps:
commands: commands:
- python3 test.py - python3 test.py
- name: deploy - name: deploy
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: 118.25.83.116 host: 118.25.83.116
username: root username: root
# secrets 的 ssh-key 是固定用法 # secrets 的 ssh-key 是固定用法
# 这个参数是在 drone 中对应仓库的 secrets 选项中添加的,名字必须是 ssh_key # 这个参数是在 drone 中对应仓库的 secrets 选项中添加的,名字必须是 ssh_key
key: key:
from_secret: ssh_key from_secret: ssh_key
port: 22 port: 22
# stoping script after first failure # stoping script after first failure
script_stop: true script_stop: true
script: script:
- echo "yulong test" > /tmp/yulong_test.drone - echo "yulong test" > /tmp/yulong_test.drone