From 9945a62a5042bbead91221465a0103b67379d28e Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Thu, 12 Mar 2026 14:24:36 +0100 Subject: [PATCH] fix(rag): docker cp into /workspace_scripts, then copy at runtime docker cp fails when target dir doesn't exist in a created container. Copy scripts to /workspace_scripts, then cp them at container start. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/rag-ingest.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/rag-ingest.yaml b/.gitea/workflows/rag-ingest.yaml index 9d23040..a4db522 100644 --- a/.gitea/workflows/rag-ingest.yaml +++ b/.gitea/workflows/rag-ingest.yaml @@ -80,6 +80,8 @@ jobs: sh -c " apk add --no-cache curl bash coreutils git python3 unzip > /dev/null 2>&1 mkdir -p /tmp/rag-ingestion/{pdfs,repos,texts} + mkdir -p /workspace/scripts + cp -r /workspace_scripts/* /workspace/scripts/ 2>/dev/null || true cd /workspace if [ '${PHASE}' = 'all' ]; then bash scripts/ingest-legal-corpus.sh @@ -96,8 +98,8 @@ jobs: echo "Container: $CONTAINER_ID" - # Scripts aus dem Git-Checkout in den Container kopieren - docker cp scripts/. "${CONTAINER_ID}:/workspace/scripts/" + # Workspace-Dir im Container anlegen und Scripts hineinkopieren + docker cp scripts "${CONTAINER_ID}:/workspace_scripts" echo "Scripts kopiert (aus Git-Checkout)" # Container starten und Output streamen