From 3069839c0d27d4a989548c93ad105d362668b044 Mon Sep 17 00:00:00 2001 From: lab Date: Sat, 11 Dec 2021 17:15:20 +0800 Subject: [PATCH] add deploy piplines to .drone.yml --- .drone.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) 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