Merge pull request #6 from d0zingcat/fix/ci

This commit is contained in:
2026-01-13 21:55:10 +08:00
committed by GitHub
5 changed files with 29 additions and 24 deletions

View File

@@ -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.

View File

@@ -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 }}

View File

@@ -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
### 新增

View File

@@ -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.

View File

@@ -1,6 +1,6 @@
{
"name": "alertmessagecenter",
"version": "1.1.0",
"version": "1.1.1",
"workspaces": [
"apps/*"
],