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

Merge branch 'just-a-test' into 'staging'

pipeline multiple updates

See merge request !23
parents dd1512fd 1cffd9d1
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
Pipeline #19126 failed
...@@ -10,37 +10,37 @@ ARG \ ...@@ -10,37 +10,37 @@ ARG \
JWT_SECRET_TEST=<my-very-secret-jwt> JWT_SECRET_TEST=<my-very-secret-jwt>
ENV \ ENV \
PORT=<dynamically-set-from-k8s> \ PORT=3000 \
MONGODB_URL=<dynamically-set-from-k8s> \ MONGODB_URL=<dynamically-set-from-k8s> \
JWT_SECRET=<dynamically-set-from-k8s> JWT_SECRET=<dynamically-set-from-k8s>
# ------------------------------------------------------------------ # ------------------------------------------------------------------
# Test stage # # Test stage
FROM base AS test # FROM base AS test
# client tests # # client tests
WORKDIR /client # 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 # # server tests
WORKDIR /server # 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 MONGODB_URL_TEST
ARG JWT_SECRET_TEST # ARG JWT_SECRET_TEST
# MONGODB_URL and JWT_SECRET are available as env variables # # MONGODB_URL and JWT_SECRET are available as env variables
RUN MONGODB_URL=$MONGODB_URL_TEST JWT_SECRET=$JWT_SECRET_TEST npm run test # RUN MONGODB_URL=$MONGODB_URL_TEST JWT_SECRET=$JWT_SECRET_TEST npm run test
# ------------------------------------------------------------------ # ------------------------------------------------------------------
# Build stage # 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