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>
29 lines
721 B
YAML
29 lines
721 B
YAML
# 发布构建配置
|
|
# 用途:构建并推送 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}
|