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

pipeline multiple updates

parent b09c4057
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,!7pipeline multiple updates
......@@ -35,15 +35,14 @@ test-image:
services:
- name: docker:${DOCKER_VERSION}-dind
script:
- export MONGO_CONTAINER_NAME=mongo-container
- docker run -p 27017:27017 -d --name $MONGO_CONTAINER_NAME mongo:${MONGO_VERSION}
- docker run -p 27017:27017 -d --name mongo-container --rm mongo:${MONGO_VERSION}
- docker build
--tag "${CONTAINER_TAG}-test"
--target=test
"./app"
after_script:
- docker stop $MONGO_CONTAINER_NAME | xargs docker rm
- docker image rm --force mongo:${MONGO_VERSION}
- docker stop mongo-container
- docker images -a | grep "mongo" | awk '{print $3}' | xargs docker rmi --force
- docker image rm --force "${CONTAINER_TAG}-test"
build-image:
......
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