Rauchmelder

This commit is contained in:
cupcakearmy 2019-03-05 18:16:01 +01:00
parent f8b0e20840
commit b829c8718c

View File

@ -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