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:
@@ -1239,6 +1239,7 @@ jobs:
|
|||||||
echo " Stack: ${STACK_PATH}"
|
echo " Stack: ${STACK_PATH}"
|
||||||
|
|
||||||
echo "📋 Deploying docker-compose configuration files..."
|
echo "📋 Deploying docker-compose configuration files..."
|
||||||
|
cd /workspace/repo
|
||||||
scp -i ~/.ssh/production \
|
scp -i ~/.ssh/production \
|
||||||
-o StrictHostKeyChecking=no \
|
-o StrictHostKeyChecking=no \
|
||||||
-o UserKnownHostsFile=/dev/null \
|
-o UserKnownHostsFile=/dev/null \
|
||||||
|
|||||||
Reference in New Issue
Block a user