fix(ci): preserve deploy variables in bot override
Deploy Canina / deploy (push) Failing after 2s

This commit is contained in:
devops committed 2026-10-15 06:00:00 +00:00
1 parent 679a551243
commit 4749ec91e4
1 file changed
+5 -5
+5 -5
View File
@@ -99,13 +99,13 @@ docker compose --progress plain build \
${NPM_REGISTRY_ARG}
echo "Building support-chat bot image from committed source..."
BOT_IMAGE="canina-support-bot:"
docker build --pull=false -f scripts/support-chat/Dockerfile -t "" .
BOT_IMAGE="canina-support-bot:\${BRANCH}"
docker build --pull=false -f scripts/support-chat/Dockerfile -t "\${BOT_IMAGE}" .
BOT_OVERRIDE="/opt/services/ai/canina-bot/support.override.cicd.yml"
cat > "" <<EOF
cat > "\${BOT_OVERRIDE}" <<EOF
services:
canina-bot:
image:
image: \${BOT_IMAGE}
env_file:
- .env
- support.env
@@ -113,7 +113,7 @@ EOF
echo "Starting containers..."
docker compose up -d --remove-orphans
echo "Starting support-chat bot container..."
docker compose -p canina-support -f /opt/services/ai/canina-bot/compose.yml -f "" up -d --no-build --force-recreate canina-bot
docker compose -p canina-support -f /opt/services/ai/canina-bot/compose.yml -f "\${BOT_OVERRIDE}" up -d --no-build --force-recreate canina-bot
echo "Waiting for backend to start..."
sleep 15