Files
shanshan/.drone.yml
Shania 974ef585fd
All checks were successful
continuous-integration/drone/push Build is passing
添加drone自动部署配置
2026-01-31 22:17:11 +08:00

47 lines
726 B
YAML

kind: pipeline
type: docker
name: deploy-test
trigger:
branch:
- develop
steps:
- name: deploy
image: appleboy/drone-scp
settings:
host: 120.79.242.43
username: root
key:
from_secret: ssh_key
port: 22
target: /var/www/shania/test
source:
- ./*
strip_components: 0
overwrite: true
---
kind: pipeline
type: docker
name: deploy-prod
trigger:
branch:
- main
steps:
- name: deploy
image: appleboy/drone-scp
settings:
host: 120.79.242.43
username: root
key:
from_secret: ssh_key
port: 22
target: /var/www/shania/prod
source:
- ./*
strip_components: 0
overwrite: true