From 1c07f17f9a5313b364a662edfbeca8a2857c24a2 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 28 Jul 2020 12:26:28 +0200 Subject: Use a template for docker-variables --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58a6ed3c3..55a740ccb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -184,14 +184,17 @@ tests-fedora-update-deps: services: - docker:stable-dind +.docker-variables-boilerplate: &docker-variables + DOCKER_HOST: tcp://docker:2375 + DOCKER_DRIVER: overlay2 + # Required to be able to connect to the docker daemon. See https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 + DOCKER_TLS_CERTDIR: "" + tests-remote-execution: <<: *tests <<: *remote-test variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - # Required to be able to connect to the docker daemon. See https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 - DOCKER_TLS_CERTDIR: "" + <<: *docker-variables COMPOSE_MANIFEST: .gitlab-ci/buildgrid-remote-execution.yml ARTIFACT_CACHE_SERVICE: http://docker:50052 REMOTE_EXECUTION_SERVICE: http://docker:50051 @@ -202,10 +205,7 @@ tests-remote-cache: <<: *tests <<: *remote-test variables: - DOCKER_HOST: tcp://docker:2375 - DOCKER_DRIVER: overlay2 - # Required to be able to connect to the docker daemon. See https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 - DOCKER_TLS_CERTDIR: "" + <<: *docker-variables COMPOSE_MANIFEST: .gitlab-ci/cache-server.yml ARTIFACT_CACHE_SERVICE: http://docker:50052 PYTEST_ARGS: "--color=yes --remote-cache" -- cgit v1.2.1