diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26957e3a327c7c48da5c7b6b5fe2620c29c3b947..e65c60669f18a896d6a3e3ad7f6a336cae88b143 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,12 +36,13 @@ run-tests: # image: node:16.17.0-alpine services: - name: docker:${DOCKER_VERSION}-dind + alias: containerHost script: - - docker run -p 27017:27017 -d --name mongo-container --rm --add-host=host.docker.internal:host-gateway mongo:${MONGO_VERSION} + - docker run -p 27017:27017 -d --name mongo-container --rm mongo:${MONGO_VERSION} - docker build --tag "${CONTAINER_TAG}-test" --target=test - --add-host=host.docker.internal:host-gateway + --add-host=host.docker.internal:containerHost "./app" # - echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/main’ >> /etc/apk/repositories # - echo ‘http://dl-cdn.alpinelinux.org/alpine/v3.6/community’ >> /etc/apk/repositories