fix(ci): Use monorepo root as Docker build context for API

Phase 6.4i requires the API Dockerfile to copy local packages
(lewooogo-brain, lewooogo-data) from the packages/ directory.
Changed build context from 'apps/api' to '.' (root) to allow
the Dockerfile to access the entire monorepo structure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-23 18:43:07 +08:00
parent 7478dc0254
commit 2aef693c0d

View File

@@ -94,6 +94,8 @@ jobs:
fi
# ----- Build API Image -----
# Phase 6.4i: 必須從 monorepo 根目錄建構 (context: .)
# 因為 Dockerfile 需要複製 packages/lewooogo-* 本地套件
- name: "Build API Image"
if: ${{ github.event_name == 'push' || inputs.deploy_api }}
env:
@@ -108,7 +110,7 @@ jobs:
--build-arg PYPI_INDEX_URL=${{ env.PYPI_INDEX_URL }} \
--build-arg PYPI_TRUSTED_HOST=${{ env.PYPI_TRUSTED_HOST }} \
-f apps/api/Dockerfile \
apps/api
.
echo "✅ API Image: ${{ steps.meta.outputs.api_image }}"
# ----- Build Web Image -----