Browse Source

update pipeline for main branch

main
parent
commit
a0571a633e
1 changed files with 30 additions and 0 deletions
  1. +30
    -0
      .drone.yml

+ 30
- 0
.drone.yml View File

@@ -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

Loading…
Cancel
Save