Fix docker and deployment scripts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Giesel 2019-09-20 18:11:36 +02:00
parent f8ac6bdc43
commit e3e49eac21
2 changed files with 29 additions and 8 deletions

View file

@ -1,6 +1,27 @@
pipeline:
run-tests:
image: node:10.15
kind: pipeline
name: default
steps:
- name: install
image: node:10.15-alpine
commands:
- npm i
- npm test
- npm install
- name: deploy
image: plugins/docker
settings:
registry: registry.cliffbreak.de
repo: registry.cliffbreak.de/landingpage
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
- deployment
trigger:
branch:
- master

View file

@ -3,8 +3,8 @@ FROM node:10.15-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
RUN npm install --production
COPY . .
CMD npm start