提交 drone 文件 2
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

This commit is contained in:
BryantHe 2022-06-14 16:12:58 +08:00
parent 4365cc8600
commit 6fecccbe1a
2 changed files with 29 additions and 5 deletions

View File

@ -5,8 +5,31 @@
# 代码拉取后会使用 python:3.7-alpine3.8 镜像来执行项目目录下的 a.py 文件 # 代码拉取后会使用 python:3.7-alpine3.8 镜像来执行项目目录下的 a.py 文件
# 由于现在仓库中并不存在 a.py 文件所以第次的测试肯定是失败的 # 由于现在仓库中并不存在 a.py 文件所以第次的测试肯定是失败的
pipeline: kind: pipeline
run: type: docker
image: 3.9.13-alpine3.15 name: default
platform:
os: linux
arch: amd64
steps:
- name: run
image: python:3.9.13-alpine3.15
commands: commands:
- python3 a.py - python3 test.py
- name: deploy
image: appleboy/drone-ssh
settings:
host: 118.25.83.116
username: root
key:
from_secret: ssh_key
port: 22
script_stop: true
script:
- echo "yulong test" > /tmp/yulong_test.drone

1
test.py Normal file
View File

@ -0,0 +1 @@
print('hello drone')