From b829c8718c5b35ebb520be99b96bbb41863d11e7 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Tue, 5 Mar 2019 18:16:01 +0100 Subject: [PATCH] Rauchmelder --- .drone.yml | 55 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index a74706b..ad85205 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: - npm run build:prod - name: copy - image: appleboy/drone-scp + image: cupcakearmy/drone-deploy environment: PLUGIN_KEY: from_secret: ssh_key @@ -23,26 +23,47 @@ steps: host: nicco.io username: root port: 1312 - target: cd /srv/web/rauchmelder - source: + target: /srv/web/rauchmelder + sources: - ./public - ./docker-compose.yml - ./docker-compose.prod.yml + commands: + - docker-compose -f docker-compose.yml -f docker-compose.prod.yml down + - docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d when: event: push branch: master - - - name: run - image: appleboy/drone-ssh - environment: - PLUGIN_KEY: - from_secret: ssh_key - settings: - host: nicco.io - username: root - port: 1312 - script: - - cd /srv/web/rauchmelder - - docker-compose -f docker-compose.yml -f docker-compose.prod.yml down - - docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d +# - name: copy +# image: appleboy/drone-scp +# environment: +# PLUGIN_KEY: +# from_secret: ssh_key +# settings: +# host: nicco.io +# username: root +# port: 1312 +# target: cd /srv/web/rauchmelder +# source: +# - ./public +# - ./docker-compose.yml +# - ./docker-compose.prod.yml +# when: +# event: push +# branch: master +# +# +# - name: run +# image: appleboy/drone-ssh +# environment: +# PLUGIN_KEY: +# from_secret: ssh_key +# settings: +# host: nicco.io +# username: root +# port: 1312 +# script: +# - cd /srv/web/rauchmelder +# - docker-compose -f docker-compose.yml -f docker-compose.prod.yml down +# - docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d