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
This commit is contained in:
2025-11-04 16:07:05 +01:00
parent 870db892e7
commit c1d6a71494

View File

@@ -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 \