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