Merge pull request '优化流水线配置文件' (#2) from dev into main
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
15
.drone.yml
15
.drone.yml
@@ -9,7 +9,16 @@ server:
|
|||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: ssh-key
|
from_secret: ssh-key
|
||||||
|
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- merge_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: greeting
|
- name: greeting
|
||||||
commands:
|
commands:
|
||||||
- echo hello world
|
- echo "Starting deployment..."
|
||||||
|
- cd /www/homepage
|
||||||
|
- git pull origin main
|
||||||
|
- echo "Deployment completed."
|
||||||
Reference in New Issue
Block a user