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

updated logic of the test-job

parent f278a387
No related branches found
No related tags found
14 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,!44updated logic of the test-job
......@@ -36,6 +36,9 @@ run-tests:
services:
- name: docker:${DOCKER_VERSION}-dind
alias: localhost
variables:
MONGODB_URL_TEST: mongodb://localhost:27017/todo-app
JWT_SECRET_TEST: my-very-secret-jwt
script:
- docker run -p 27017:27017
--detach
......@@ -46,9 +49,8 @@ run-tests:
- docker build
--tag "${CONTAINER_TAG}-test"
--network=host
--build-arg MONGODB_URL_TEST=mongodb://localhost:27017/todo-app
--build-arg JWT_SECRET_TEST=my-very-secret-jwt
--add-host=host.docker.internal:host-gateway
--build-arg MONGODB_URL_TEST=$MONGODB_URL_TEST
--build-arg JWT_SECRET_TEST=$JWT_SECRET_TEST
--file "./app/Dockerfile.test"
"./app"
after_script:
......
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