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

pipeline multiple updates

parent 511b275d
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,!6pipeline multiple updates
...@@ -35,13 +35,14 @@ test-image: ...@@ -35,13 +35,14 @@ test-image:
services: services:
- name: docker:${DOCKER_VERSION}-dind - name: docker:${DOCKER_VERSION}-dind
script: script:
- docker run -p 27017:27017 -d mongo:${MONGO_VERSION} - export MONGO_CONTAINER_NAME=mongo-container
- docker run -p 27017:27017 -d --name $MONGO_CONTAINER_NAME mongo:${MONGO_VERSION}
- docker build - docker build
--tag "${CONTAINER_TAG}-test" --tag "${CONTAINER_TAG}-test"
--target=test --target=test
"./app" "./app"
after_script: after_script:
- docker stop mongo:${MONGO_VERSION} | xargs docker rm - docker stop $MONGO_CONTAINER_NAME | xargs docker rm
- docker image rm --force mongo:${MONGO_VERSION} - docker image rm --force mongo:${MONGO_VERSION}
- docker image rm --force "${CONTAINER_TAG}-test" - docker image rm --force "${CONTAINER_TAG}-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