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 - npm run build:prod
- name: copy - name: copy
image: appleboy/drone-scp image: cupcakearmy/drone-deploy
environment: environment:
PLUGIN_KEY: PLUGIN_KEY:
from_secret: ssh_key from_secret: ssh_key
@ -23,26 +23,47 @@ steps:
host: nicco.io host: nicco.io
username: root username: root
port: 1312 port: 1312
target: cd /srv/web/rauchmelder target: /srv/web/rauchmelder
source: sources:
- ./public - ./public
- ./docker-compose.yml - ./docker-compose.yml
- ./docker-compose.prod.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: when:
event: push event: push
branch: master branch: master
# - name: copy
- name: run # image: appleboy/drone-scp
image: appleboy/drone-ssh # environment:
environment: # PLUGIN_KEY:
PLUGIN_KEY: # from_secret: ssh_key
from_secret: ssh_key # settings:
settings: # host: nicco.io
host: nicco.io # username: root
username: root # port: 1312
port: 1312 # target: cd /srv/web/rauchmelder
script: # source:
- cd /srv/web/rauchmelder # - ./public
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml down # - ./docker-compose.yml
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d # - ./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