build: add OCI release identity labels

This commit is contained in:
2026-09-20 18:30:38 +08:00
parent af10086570
commit 552fd22704
3 changed files with 10 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ docker build --platform linux/amd64 \
-t registry.example/orbit:1.0.0 .
```
节点启动后通过 `GET /version` 核对这些值。`registry.example` 只是占位符,不是平台依赖。
镜像同时写入 OCI `org.opencontainers.image.version`、`org.opencontainers.image.revision` 和 `org.opencontainers.image.created` 标签;可以先核对标签,再在节点启动后通过 `GET /version` 核对进程实际使用的值。`registry.example` 只是占位符,不是平台依赖。
## 2. 迁移、核验和启动