Fix YAML line 207: separate variable from quoted string in echo command
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-25 18:24:18 +09:00
parent 237515b812
commit e5f81c6720

View File

@@ -205,7 +205,7 @@ steps:
echo "✅ Continuing with integration tests on local environment"
exit 0
fi
- echo "Deploying to staging server: $STAGING_HOST"
- echo "Deploying to staging server:" $STAGING_HOST
- mkdir -p ~/.ssh
- echo "$STAGING_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
@@ -222,7 +222,7 @@ steps:
ssh $STAGING_USER@$STAGING_HOST "cd /opt/smartsoltech-staging &&
echo 'Fetching latest changes...' &&
git fetch origin &&
git reset --hard origin/\${DRONE_BRANCH} &&
git reset --hard origin/master &&
echo 'Restarting services...' &&
docker-compose down --timeout 30 &&
docker-compose pull &&
@@ -454,7 +454,7 @@ steps:
- |
ssh $PROD_USER@$PROD_HOST "cd /opt/smartsoltech &&
echo 'Creating backup...' &&
git stash push -m 'Pre-deployment backup $(date)' || true &&
git stash push -m \"Pre-deployment backup \$(date)\" || true &&
docker-compose down --timeout 30 || true"
- echo "Pulling latest changes..."
- |