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

pipeline test stage update

parent cf004763
No related branches found
No related tags found
17 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
......@@ -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