add deploy piplines to .drone.yml
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
lab 2021-12-11 17:15:20 +08:00
parent 4543328f40
commit 3069839c0d

View File

@ -48,3 +48,40 @@ trigger:
- master - master
event: event:
- push - 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