From e6d8f900dd95a06a1687dc902c2350e74a876e70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20R=C3=B6sner?=
 <philipp.roesner@student.uni-halle.de>
Date: Tue, 3 Sep 2024 09:07:53 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73e095f..854da2a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,18 +1,24 @@
-image: docker:latest
+image: docker:24.0.5  # Use the latest version of Docker available
 
 services:
-  - docker:dind
+  - name: docker:24.0.5-dind  # Use the Docker-in-Docker image
+    command: ["--tls=false"]
 
 variables:
   # Define the Docker image name using the GitLab CI environment variables
   IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
 
+  # Ensure Docker commands are sent to the Docker-in-Docker service
+  DOCKER_HOST: tcp://docker:2375/
+  DOCKER_TLS_CERTDIR: ""  # Disable Docker's TLS feature since it's not needed here
+
 before_script:
   # Login to the GitLab Container Registry
   - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
 
 stages:
   - build
+  - deploy
 
 build:
   stage: build
-- 
GitLab