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

Merge branch 'just-a-test' into 'staging'

pipeline multiple updates

See merge request !7
parents b09c4057 188d11b9
No related branches found
No related tags found
Loading
Pipeline #19111 failed
...@@ -35,15 +35,14 @@ test-image: ...@@ -35,15 +35,14 @@ test-image:
services: services:
- name: docker:${DOCKER_VERSION}-dind - name: docker:${DOCKER_VERSION}-dind
script: script:
- export MONGO_CONTAINER_NAME=mongo-container - docker run -p 27017:27017 -d --name mongo-container --rm mongo:${MONGO_VERSION}
- 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_CONTAINER_NAME | xargs docker rm - docker stop mongo-container
- docker image rm --force mongo:${MONGO_VERSION} - docker images -a | grep "mongo" | awk '{print $3}' | xargs docker rmi --force
- docker image rm --force "${CONTAINER_TAG}-test" - docker image rm --force "${CONTAINER_TAG}-test"
build-image: 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