homepage/.drone.yml
yulei 4147effc20
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build encountered an error
优化流水线配置文件
2025-03-15 11:23:14 +08:00

24 lines
349 B
YAML

---
kind: pipeline
type: ssh
name: default
server:
host: 47.109.53.247
user: root
ssh_key:
from_secret: ssh-key
when:
branch:
- main
event:
- merge_request
steps:
- name: greeting
commands:
- echo "Starting deployment..."
- cd /www/homepage
- git pull origin main
- echo "Deployment completed."