add deploy piplines to .drone.yml
This commit is contained in:
parent
4543328f40
commit
3069839c0d
37
.drone.yml
37
.drone.yml
@ -48,3 +48,40 @@ trigger:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
# drone-ssh doc
|
||||
# http://plugins.drone.io/appleboy/drone-ssh/
|
||||
steps:
|
||||
- name: deploy-staging
|
||||
# image: appleboy/drone-ssh
|
||||
image: alpine
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
script:
|
||||
- echo "deply to staging"
|
||||
- env
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
-production
|
||||
|
||||
- name: deploy-production
|
||||
# image: appleboy/drone-ssh
|
||||
image: alpine
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
script:
|
||||
- echo "deply to production"
|
||||
- env
|
||||
when:
|
||||
event:
|
||||
- promote
|
||||
target:
|
||||
- production
|
Loading…
x
Reference in New Issue
Block a user