From 1cffd9d15d8d7e61e83d03f8277abd750b9c1b6e Mon Sep 17 00:00:00 2001 From: Dobromir Palushev <s28840@bht-berlin.de> Date: Fri, 2 Sep 2022 23:08:50 +0200 Subject: [PATCH] pipeline multiple updates --- app/Dockerfile | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index c90d427..af43271 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -10,37 +10,37 @@ ARG \ JWT_SECRET_TEST=<my-very-secret-jwt> ENV \ - PORT=<dynamically-set-from-k8s> \ + PORT=3000 \ MONGODB_URL=<dynamically-set-from-k8s> \ JWT_SECRET=<dynamically-set-from-k8s> # ------------------------------------------------------------------ -# Test stage -FROM base AS test +# # Test stage +# FROM base AS test -# client tests -WORKDIR /client +# # client tests +# WORKDIR /client -COPY ./client . +# COPY ./client . -RUN npm ci --no-audit --no-fund +# RUN npm ci --no-audit --no-fund -RUN npm run test +# RUN npm run test -# server tests -WORKDIR /server +# # server tests +# WORKDIR /server -COPY ./server/src ./src/ +# COPY ./server/src ./src/ -COPY ./server/package*.json ./ +# COPY ./server/package*.json ./ -RUN npm ci --no-audit --no-fund +# RUN npm ci --no-audit --no-fund -ARG MONGODB_URL_TEST -ARG JWT_SECRET_TEST +# ARG MONGODB_URL_TEST +# ARG JWT_SECRET_TEST -# MONGODB_URL and JWT_SECRET are available as env variables -RUN MONGODB_URL=$MONGODB_URL_TEST JWT_SECRET=$JWT_SECRET_TEST npm run test +# # MONGODB_URL and JWT_SECRET are available as env variables +# RUN MONGODB_URL=$MONGODB_URL_TEST JWT_SECRET=$JWT_SECRET_TEST npm run test # ------------------------------------------------------------------ # Build stage -- GitLab