From 66996f5408b6edc803bf21b37c9f9b4194d8275c Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 25 Jun 2020 18:11:33 +0200 Subject: [PATCH] Add dev branch to drone --- .drone.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index bd42008..fe103cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,15 +1,35 @@ +--- + kind: pipeline type: exec -name: deploy +name: deploy to prod steps: - name: deploy to server environment: DEPLOY_COMMAND: - from_secret: deploy_command + from_secret: deploy_command_prod commands: - $${DEPLOY_COMMAND} trigger: branch: - main + +--- + +kind: pipeline +type: exec +name: deploy to dev + +steps: + - name: deploy to server + environment: + DEPLOY_COMMAND: + from_secret: deploy_command_dev + commands: + - $${DEPLOY_COMMAND} + +trigger: + branch: + - dev