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

setting port again

parent 1f0e57a5
No related branches found
No related tags found
37 merge requests!71A pipeline Job rename,!69Workflow updates,!68Workflow updates,!67Workflow updates,!65updated logic of the test-job,!63updated logic of the test-job,!61updated logic of the test-job,!59updated logic of the test-job,!57updated logic of the test-job,!55added "create-release-tag" job,!54updated logic of the test-job,!53Workflow updates,!51updated logic of the test-job,!49updated logic of the test-job,!48updated logic of the test-job,!46updated logic of the test-job,!44updated logic of the test-job,!43updated logic of the test-job,!42updated logic of the test-job,!41updated logic of the test-job,!40updated logic of the test-job,!39updated logic of the test-job,!38updated logic of the test-job,!36pipeline multiple updates,!35pipeline multiple updates,!34updated logic of the test-job,!33pipeline multiple updates,!32pipeline multiple updates,!31updated logic of the test-job,!30pipeline multiple updates,!29updated logic of the test-job,!28pipeline multiple updates,!27pipeline multiple updates,!26pipeline multiple updates,!25pipeline multiple updates,!24pipeline multiple updates,!23pipeline multiple updates
...@@ -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