Add DevOps release and deployment configuration
Some checks failed
Build and Deploy / test-backend (push) Has been cancelled
Build and Deploy / build-backend (push) Has been cancelled
Build and Deploy / build-admin (push) Has been cancelled
Deploy to Production / build-backend (push) Has been cancelled
Deploy to Production / deploy (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
bujie9527
2026-02-05 22:59:28 +08:00
parent edae775129
commit 0bd860f956
9 changed files with 488 additions and 30 deletions

View File

@@ -0,0 +1,30 @@
# 发布构建配置
# 用途:构建并推送 Docker 镜像到私有 Registry
# 使用: TAG=v1.0.0 docker compose -f docker-compose.release.yml build
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: registry.667788.cool/wecom-backend:${TAG:-latest}
tags:
- registry.667788.cool/wecom-backend:${TAG:-latest}
admin:
build:
context: ./admin
dockerfile: Dockerfile
image: registry.667788.cool/wecom-admin:${TAG:-latest}
tags:
- registry.667788.cool/wecom-admin:${TAG:-latest}
nginx:
build:
context: ./deploy/nginx
dockerfile: Dockerfile
image: registry.667788.cool/wecom-nginx:${TAG:-latest}
tags:
- registry.667788.cool/wecom-nginx:${TAG:-latest}