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: kind: pipeline
run-tests: name: default
image: node:10.15
steps:
- name: install
image: node:10.15-alpine
commands: commands:
- npm i - npm install
- npm test
- 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 WORKDIR /usr/src/app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install --production
COPY . . COPY . .
CMD npm start