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
33
.drone.yml
33
.drone.yml
|
@ -1,6 +1,27 @@
|
||||||
pipeline:
|
kind: pipeline
|
||||||
run-tests:
|
name: default
|
||||||
image: node:10.15
|
|
||||||
commands:
|
steps:
|
||||||
- npm i
|
- name: install
|
||||||
- npm test
|
image: node:10.15-alpine
|
||||||
|
commands:
|
||||||
|
- 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
|
WORKDIR /usr/src/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install --production
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
CMD npm start
|
Loading…
Reference in a new issue