From e24e3b722a2555dd7738b67b6c9d3e07ff156723 Mon Sep 17 00:00:00 2001 From: continuist Date: Sat, 5 Jul 2025 13:04:02 -0400 Subject: [PATCH] clean workspace folder on the host and DinD at start of run --- .forgejo/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 079bb4e..8eca1b7 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -69,11 +69,13 @@ jobs: # Use the pre-configured workspace directory (created in CI guide Step 7.3) # Clone the repository to workspace + rm -rf /tmp/ci-workspace git clone "${{ gitea.server_url }}/${{ gitea.repository }}" /tmp/ci-workspace cd /tmp/ci-workspace git checkout "${{ gitea.sha }}" # Copy workspace to DinD container + docker exec ci-dind rm -rf /workspace/* docker cp /tmp/ci-workspace/. ci-dind:/workspace/ # Start testing environment using dedicated compose file inside DinD