Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ pipeline:
secrets:
- npm_auth_token
commands:
- npm install
- npm install -g npm@6
- npm ci
- npm test
when:
event: [push, pull_request, tag]

audit:
image: node:8
secrets:
- npm_auth_token
commands:
- npm install -g npm@6
- npx @lennym/ciaudit
when:
event: [push, pull_request, tag]

compile:
image: node:8
secrets:
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ FROM quay.io/ukhomeofficedigital/nodejs-base:v8
ARG NPM_AUTH_USERNAME
ARG NPM_AUTH_TOKEN

RUN npm install -g npm@6

COPY .npmrc /app/.npmrc
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
RUN npm install --production --no-optional
RUN npm ci --production --no-optional
COPY . /app

RUN rm /app/.npmrc
Expand Down