From b405ef17be61ae000ddb8fe5eb60cb28a5c9827b Mon Sep 17 00:00:00 2001 From: d0zingcat Date: Tue, 13 Jan 2026 21:32:31 +0800 Subject: [PATCH 1/2] fix: ci pack Signed-off-by: d0zingcat --- .github/workflows/ci.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9c3d29..d59eddf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,22 +28,12 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push Server image + - name: Build and push unified image uses: docker/build-push-action@v5 with: context: . - file: apps/server/Dockerfile + file: Dockerfile push: true tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-server:latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-server:${{ github.sha }} - - - name: Build and push Web image - uses: docker/build-push-action@v5 - with: - context: . - file: apps/web/Dockerfile - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-web:latest - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-web:${{ github.sha }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} From 642385619c25bd6734c973a4db1374e76acd0f44 Mon Sep 17 00:00:00 2001 From: d0zingcat Date: Tue, 13 Jan 2026 21:54:03 +0800 Subject: [PATCH 2/2] fix: docker pack Signed-off-by: d0zingcat --- .agent/workflows/update-context.md | 10 ++++++---- CHANGELOG.md | 5 +++++ docs/copilot-context.md | 18 +++++++++++++----- package.json | 2 +- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/.agent/workflows/update-context.md b/.agent/workflows/update-context.md index 278f350..a7bd444 100644 --- a/.agent/workflows/update-context.md +++ b/.agent/workflows/update-context.md @@ -4,11 +4,13 @@ description: Update project context documentation for AI/IDE awareness // turbo-all 1. Check recent file changes to identify new features, API changes, or configuration updates. -2. Read `docs/copilot-context.md` to understand the current documented state. -3. Update `docs/copilot-context.md` with: +2. Review `README.md` and `CHANGELOG.md` for recent project status and version updates. +3. Read `docs/copilot-context.md` to understand the current documented state. +4. Update `docs/copilot-context.md` with: - New or modified entities in the data model. - Added or changed API endpoints. - New key workflows or architectural decisions. - Updated development conventions or environment variables. -4. If `todo.md` exists, ensure it is also updated to reflect completed tasks. -5. Summarize the updates made to the context for the user. + - Consistency with `README.md` and `CHANGELOG.md`. +5. If `todo.md` exists, ensure it is also updated to reflect completed tasks. +6. Summarize the updates made to the context for the user. diff --git a/CHANGELOG.md b/CHANGELOG.md index 17ec655..21f9925 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ 本文件的格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/), 并且本项目遵循 [语义化版本 (Semantic Versioning)](https://semver.org/lang/zh-CN/spec/v2.0.0.html)。 +## [1.1.1] - 2026-01-13 + +### 修复 +- **CI/CD**: 修复了由于 Dockerfile 路径重构导致的 GitHub Actions 构建失败问题。 + ## [1.1.0] - 2026-01-13 ### 新增 diff --git a/docs/copilot-context.md b/docs/copilot-context.md index 345ffd6..ca879b7 100644 --- a/docs/copilot-context.md +++ b/docs/copilot-context.md @@ -1,4 +1,4 @@ -# Project Context for GitHub Copilot +# Project Context for GitHub Copilot (v1.1.1) This document provides technical context, architectural decisions, and code conventions for the **Alert Message Center** project. It is intended to help AI assistants understand the codebase. @@ -133,10 +133,18 @@ The database schema is defined in `apps/server/src/db/schema.ts`. - **Styling**: Use Tailwind utility classes directly in JSX. - **Async/Await**: Prefer `async/await` over `.then()`. - **Type Safety**: strict TypeScript usage. Backend and Frontend share types via Hono RPC or shared interfaces. -- **Environment Variables**: - - `FEISHU_APP_ID`, `FEISHU_APP_SECRET`, `REDIRECT_URI`, `ADMIN_EMAILS`. +- **Environment Isolation**: + - Each workspace (`apps/server`, `apps/web`) uses its own `.env` file via Bun's `--env-file .env` flag. + - Development proxy target for the frontend is configurable via `VITE_API_URL` (default: `http://localhost:3000`). - **CI/CD**: - - GitHub Actions automates the build and push of Docker images to GitHub Container Registry (GHCR). - - Images are built for both `apps/server` (Bun) and `apps/web` (Nginx). + - GitHub Actions automates building a multi-stage Docker image and pushing it to GitHub Container Registry (GHCR). + - Image path: `ghcr.io/${USER}/alert-message-center`. + - Deployment Architecture: A single container runs the Bun server, which serves API requests and static frontend assets (via `hono/bun`'s `serveStatic`). + +## 8. Core Documents + +- **[README.md](file:///Users/lilithgames/Workspace/dap/alert-message-center/README.md)**: Main project documentation, including quick start, tech stack overview, and Webhook usage guide. +- **[CHANGELOG.md](file:///Users/lilithgames/Workspace/dap/alert-message-center/CHANGELOG.md)**: Record of version changes, following the Keep a Changelog specification. +- **[todo.md](file:///Users/lilithgames/Workspace/dap/alert-message-center/todo.md)**: Task tracking and upcoming features. diff --git a/package.json b/package.json index 5f132a7..2fee0cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "alertmessagecenter", - "version": "1.1.0", + "version": "1.1.1", "workspaces": [ "apps/*" ],