From a0571a633e810d926a2bc53d7eaa3e8bc039a731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E7=BA=A7=E4=BA=91=E8=84=91=E7=A0=94=E5=8F=91?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=B8=88?= <153692773@qq.com> Date: Fri, 24 Feb 2023 10:28:07 +0800 Subject: [PATCH] update pipeline for main branch --- .drone.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..87af6a3 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,30 @@ +kind: pipeline +type: docker +name: 1 +platform: + os: linux + arch: arm64 +steps: + +- name: 编译构建 + image: python + commands: + - pip install -r requirements.txt +- name: 远程主机部署 + image: appleboy/drone-ssh:linux-arm64 + settings: + host: + from_secret: ip + username: + from_secret: name + password: + from_secret: pwd + port: 22 + script: + - chmod +x /home/deploy.sh + - bash /home/deploy.sh +trigger: + branch: + - main + event: + - push