Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 31 May 08:37
· 28 commits to main since this release
bfd8e00

🐳 Docker 部署 + 自动镜像构建

新增

  • 自包含多阶段 Dockerfile:内部完成「前端构建(Node 18/Vite)→ 后端编译(前端 embed)→ 最小运行镜像」,docker build 一步到位,无需预编译。
  • docker-compose.yml:docker compose up -d --build 一键起 应用 + OpenLDAP(sqlite 默认,可选 MySQL / phpLDAPadmin)。
  • GitHub Actions(docker-image.yml):打 v* tag 自动构建并推送镜像到 GHCR。

修复

  • 发版 CI:release.yml 此前固定 Go 1.21 与 go.mod 的 go 1.25 冲突、且 ldflags 的 BuildTime 含空格未加引号 —— 导致 v1.0.0~v1.1.1 的 CI 全部失败、二进制未产出。现已修复,多平台二进制恢复正常。

使用

# 容器镜像
docker pull ghcr.io/dashug/ldap-admin-platform:1.2.0
# 或一键起完整环境(应用 + OpenLDAP)
docker compose up -d --build
# 访问 http://localhost:8888 ,默认 admin / 123456

资产

  • 多平台二进制(linux / darwin 的 amd64+arm64、windows amd64)见下方 Assets。
  • 容器镜像:ghcr.io/dashug/ldap-admin-platform:{1.2.0, 1.2, latest}

    注:GHCR 包默认 private,匿名 docker pull 前需在仓库 Packages 设置中改为 public。

Full Changelog: v1.1.1...v1.2.0