add build & deploy pipeline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1a1a8b4681
commit
5124d98a3e
27
.drone.yml
27
.drone.yml
@ -17,3 +17,30 @@ steps:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build & deploy
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: plugins/hugo
|
||||
settings:
|
||||
validate: true
|
||||
extended: true
|
||||
|
||||
- name: deploy
|
||||
image: drillster/drone-rsync
|
||||
settings:
|
||||
hosts: ["www.ducamps.win"]
|
||||
target: /usr/share/nginx/html/welcome
|
||||
source: public/*
|
||||
user: drone-deploy
|
||||
key:
|
||||
from_secret: deploy_private_key
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
Loading…
Reference in New Issue
Block a user