From 697aad4b9dc44271b7d6bc0b0b301e5d709f2260 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Mon, 1 Jul 2024 10:03:24 +0200
Subject: [PATCH] Shut down docker project to avoid issues on runner hosts

---
 lakedrops-execute.yml |  3 +++
 test-and-deploy.yml   | 14 ++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/lakedrops-execute.yml b/lakedrops-execute.yml
index 08f16b2..ddffc01 100644
--- a/lakedrops-execute.yml
+++ b/lakedrops-execute.yml
@@ -54,3 +54,6 @@ Deploy:
 
 DeployNG:
   extends: '.deployartefact-ng'
+
+Shut Down Docker Project:
+  extends: 'shutdowndockerproject'
diff --git a/test-and-deploy.yml b/test-and-deploy.yml
index 5b7592f..6a29707 100644
--- a/test-and-deploy.yml
+++ b/test-and-deploy.yml
@@ -844,3 +844,17 @@ Debug:
     - if: '$IGNORE_COMPOSER_EXTENDED_AUDIT == "0"'
       when: always
     - when: never
+
+.shutdowndockerproject:
+  stage: finalize
+  tags:
+    - default
+  <<: *retry-for-system-issues
+  image: registry.lakedrops.com/docker/gitlab-drupal-ci/php-${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
+  cache:
+    <<: *cache_default
+    policy: pull
+  script:
+    - docker compose down
+  dependencies:
+    - 'Build Site'
-- 
GitLab