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

pipeline multiple updates

parent 11343d18
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,!18pipeline multiple updates
......@@ -42,6 +42,8 @@ run-tests:
- docker build
--tag "${CONTAINER_TAG}-test"
--target=test
--build-arg MONGODB_URL_TEST=mongodb://containerhost:27017/todo-app
--build-arg JWT_SECRET_TEST=<my-very-secret-jwt>
--add-host=host.docker.internal:localhost
"./app"
# - echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/main’ >> /etc/apk/repositories
......
......@@ -36,9 +36,8 @@ COPY ./server/package*.json ./
RUN npm ci --no-audit --no-fund
ARG \
MONGODB_URL_TEST=mongodb://host.docker.internal:27017/todo-app \
JWT_SECRET_TEST=<my-very-secret-jwt>
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
......
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