Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat(release): 镜像带发行说明链接,Release 正文补 Docker 段

longmeidao8fca4a67f520
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 69fcd6972..44d47a243 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -431,6 +431,8 @@ jobs:
run: |
cd release
tail -n +4 ../macos-candidates/scripts/MACOS_DOWNLOADS.md >> RELEASE_NOTES.md
+ printf '\n' >> RELEASE_NOTES.md
+ tail -n +4 ../scripts/DOCKER_DOWNLOADS.md | sed "s/{version}/${GITHUB_REF_NAME#v}/g" >> RELEASE_NOTES.md
files=(./*.zip ./*-setup.exe ./*.dmg SHA256SUMS.txt)
if [ -f SHA256SUMS.txt.sig ]; then files+=(SHA256SUMS.txt.sig); fi
gh release create "$GITHUB_REF_NAME" "${files[@]}" --verify-tag --prerelease --title "$GITHUB_REF_NAME" --notes-file RELEASE_NOTES.md
@@ -523,9 +525,12 @@ jobs:
context: .
load: true
tags: longmeidao/peach:candidate
+ # ghcr 包页显示 description;带上这一版的发行说明链接,镜像页能直接点到更新内容。
labels: |
org.opencontainers.image.version=${{ steps.version.outputs.version }}
org.opencontainers.image.revision=${{ github.sha }}
+ org.opencontainers.image.description=Local-first video metadata scraper and media manager for VPS and NAS. Release notes: https://github.com/peach-mitao/peach/releases/tag/v${{ steps.version.outputs.version }}
+ org.opencontainers.image.url=https://github.com/peach-mitao/peach/releases/tag/v${{ steps.version.outputs.version }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: 验收临时容器
diff --git a/Dockerfile b/Dockerfile
index 1446a8ff5..ea70e8faf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,6 +26,7 @@ RUN target="$(.venv/bin/python -c 'import pathlib, peach; print(pathlib.Path(pea
FROM python:3.15.1-slim-trixie
LABEL org.opencontainers.image.title="Peach" \
org.opencontainers.image.source="https://github.com/peach-mitao/peach" \
+ org.opencontainers.image.documentation="https://github.com/peach-mitao/peach/blob/master/docs/DOCKER.md" \
org.opencontainers.image.licenses="AGPL-3.0-or-later"
# amane 独立环境在构建阶段准备,空数据卷可直接调用。
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg openssl ca-certificates mesa-va-drivers vainfo \
diff --git a/docs/dockerhub/README.md b/docs/dockerhub/README.md
index 705270334..73a87b789 100644
--- a/docs/dockerhub/README.md
+++ b/docs/dockerhub/README.md
@@ -23,7 +23,7 @@ Movie demo data; see [asset credits and licenses](https://peach.video/en/credits
| Item | Value |
| --- | --- |
-| Image | `longmeidao/peach` |
+| Image | `longmeidao/peach`; the same image is also published as `ghcr.io/peach-mitao/peach` |
| Version tags | One per release, built from the release commit |
| `edge` | Moves to the latest complete release |
| Platform | `linux/amd64`; ARM NAS is not yet verified |
diff --git a/scripts/DOCKER_DOWNLOADS.md b/scripts/DOCKER_DOWNLOADS.md
new file mode 100644
index 000000000..0d6c29925
--- /dev/null
+++ b/scripts/DOCKER_DOWNLOADS.md
@@ -0,0 +1,7 @@
+---
+kind: howto
+---
+
+### Docker
+
+镜像为 `longmeidao/peach:{version}`,同一镜像也发布为 `ghcr.io/peach-mitao/peach:{version}`;`edge` 指向最新一版。部署、更新与回滚见 [Docker 部署](https://github.com/peach-mitao/peach/blob/master/docs/DOCKER.md)。