deployment

This commit is contained in:
cupcakearmy 2019-03-05 19:38:19 +01:00
parent e4aa29ad9c
commit 09ace19405

View File

@ -2,9 +2,9 @@ kind: pipeline
name: default name: default
steps: steps:
- name: build - name: build
image: node:11-alpine image: node:11-alpine
pull: always
commands: commands:
- node -v - node -v
- npm -v - npm -v
@ -12,23 +12,23 @@ steps:
- npm run build:prod - npm run build:prod
- name: deploy - name: deploy
image: cupcakearmy/drone-deploy image: cupcakearmy/drone-deploy
pull: always pull: always
environment: environment:
PLUGIN_KEY: PLUGIN_KEY:
from_secret: ssh_key from_secret: ssh_key
settings: settings:
host: nicco.io host: nicco.io
user: root user: root
port: 1312 port: 1312
target: /srv/web/home target: /srv/web/home
sources: sources:
- ./public - ./public
- ./docker-compose.yml - ./docker-compose.yml
- ./docker-compose.prod.yml - ./docker-compose.prod.yml
commands: commands:
- docker-compose -f docker-compose.yml -f docker-compose.prod.yml down - 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 - docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
when: when:
event: push event: push
branch: master branch: master