From c1d6a714942b6ec18537b095885e36a35c06272b Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Tue, 4 Nov 2025 16:07:05 +0100 Subject: [PATCH] fix(deployment): cd to /workspace/repo before scp The 'Deploy to Production Server' step is separate from the clone step and doesn't inherit the working directory. The scp command was running from the default directory where docker-compose files don't exist. Adding 'cd /workspace/repo' before scp to access the cloned repository files. This fixes the error: docker-compose.base.yml: No such file or directory docker-compose.production.yml: No such file or directory --- .gitea/workflows/build-image.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index ce05bbb0..b43bb288 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -1239,6 +1239,7 @@ jobs: echo " Stack: ${STACK_PATH}" echo "📋 Deploying docker-compose configuration files..." + cd /workspace/repo scp -i ~/.ssh/production \ -o StrictHostKeyChecking=no \ -o UserKnownHostsFile=/dev/null \