From bdf6df02dafbc3e9eca1cce5a36e60e994a7ce3e Mon Sep 17 00:00:00 2001 From: Dobromir Palushev <dobromir@peaksandpies.com> Date: Fri, 2 Sep 2022 22:16:51 +0200 Subject: [PATCH] setting alias --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 26957e3..e65c606 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 -- GitLab