diff --git a/.drone.yml b/.drone.yml index f452463..f2e27b6 100644 --- a/.drone.yml +++ b/.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 \ No newline at end of file