优化流水线配置文件
This commit is contained in:
parent
3f3dff3b5d
commit
4147effc20
15
.drone.yml
15
.drone.yml
@ -9,7 +9,16 @@ server:
|
||||
ssh_key:
|
||||
from_secret: ssh-key
|
||||
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- merge_request
|
||||
|
||||
steps:
|
||||
- name: greeting
|
||||
commands:
|
||||
- echo hello world
|
||||
- name: greeting
|
||||
commands:
|
||||
- echo "Starting deployment..."
|
||||
- cd /www/homepage
|
||||
- git pull origin main
|
||||
- echo "Deployment completed."
|
||||
Loading…
x
Reference in New Issue
Block a user