Skip to content
Snippets Groups Projects
Commit 1cffd9d1 authored by Dobromir Palushev's avatar Dobromir Palushev
Browse files

pipeline multiple updates

parent dd1512fd
No related branches found
No related tags found
17 merge requests!72Production update,!70Production update,!67Workflow updates,!66Css test change,!64Pipeline fix,!62Main update,!60Getting staging's latest state,!58Updating Main,!56Main updates,!52Staging->Main,!50Production updates,!47Deployment on main,!45Deployment from main,!41updated logic of the test-job,!39updated logic of the test-job,!37Updating main to reflect staging,!23pipeline multiple updates
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment