diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml index ef01dd8..b109d57 100644 --- a/.forgejo/workflows/release.yaml +++ b/.forgejo/workflows/release.yaml @@ -441,7 +441,6 @@ jobs: --manifest "$amd64_forgejo_manifest" \ --manifest "$arm64_forgejo_manifest" \ --tag "${IMAGE}:${IMAGE_VERSION}" - crane tag "${IMAGE}:${IMAGE_VERSION}" "$RELEASE_TAG" case "$IMAGE_VERSION" in *-*) ;; *) crane tag "${IMAGE}:${IMAGE_VERSION}" latest ;; @@ -451,7 +450,6 @@ jobs: --manifest "$amd64_dockerhub_manifest" \ --manifest "$arm64_dockerhub_manifest" \ --tag "${DOCKERHUB_IMAGE}:${IMAGE_VERSION}" - crane tag "${DOCKERHUB_IMAGE}:${IMAGE_VERSION}" "$RELEASE_TAG" case "$IMAGE_VERSION" in *-*) ;; *) crane tag "${DOCKERHUB_IMAGE}:${IMAGE_VERSION}" latest ;; diff --git a/README.md b/README.md index d63300c..d46c54b 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ volumes: pixhelf-cache: ``` +模型已经包含在镜像中,不需要挂载模型目录。这里只需把宿主机的 `./pic` 照片目录只读挂载到容器;`pixhelf-cache` 是 Compose 自动创建和管理的命名卷,无需手工准备路径,用来在容器更新后继续复用缩略图和搜索索引。 + +如果不需要保留缓存,可以删除 `pixhelf-cache:/data/.pixhelf-cache` 和末尾的 `volumes` 段;容器重建后会重新生成缩略图与搜索索引。 + ```bash mkdir -p pic docker compose up -d @@ -32,6 +36,8 @@ mkdir -p pic && docker run -d --name pixhelf --restart unless-stopped -p 3002:30 照片放进 `./pic`,访问 。 +镜像发布只使用版本号标签(例如 `0.2.3`)和 `latest`;带 `v` 的标签只用于 Git 与 Forgejo Release,不再重复发布为镜像标签。 + ### Compose 参数配置 Pixhelf 参数可以直接通过 Compose 的 `environment` 配置,无需编写 `command`: diff --git a/compose.yml b/compose.yml index 4834945..6bf5884 100644 --- a/compose.yml +++ b/compose.yml @@ -2,10 +2,6 @@ services: pixhelf: image: eureka6688/pixhelf:latest restart: unless-stopped - environment: - PIXHELF_INITIAL_BATCH: "60" - PIXHELF_WORKERS: "4" - PIXHELF_SCAN_INTERVAL: "10" ports: - "3002:3002" volumes: