add tests to dockerfile; remove namespace from deployment manifest

This commit is contained in:
Kegan Myers 2020-04-15 00:36:18 -05:00
parent 8c7f93c1a0
commit 3eeb15609a
2 changed files with 6 additions and 8 deletions

View File

@ -3,7 +3,12 @@ WORKDIR /app
FROM base as packages
ADD package.json yarn.lock /app/
RUN yarn --production --frozen-lockfile
FROM base as final
FROM base as src
COPY --from="packages" /app/node_modules /app/node_modules
ADD . /app
FROM src as test
RUN yarn && \
node lib/binaryQuerystring/index.test.js
FROM src as final
CMD node index.js

View File

@ -1,10 +1,4 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: '${NAMESPACE}'
spec: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -77,4 +71,3 @@ spec:
backend:
serviceName: '${APP_NAME}'
servicePort: http