Fix docker and deployment scripts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f8ac6bdc43
commit
e3e49eac21
2 changed files with 29 additions and 8 deletions
31
.drone.yml
31
.drone.yml
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue