跳转到内容

cnb-rs repo tag annotation set

cnb-rs repo tag annotation set <TAG> <KEY=VALUE> [<KEY=VALUE>...]

设置一个或多个 annotations(已有 key 会被覆盖)。

参数

  • <TAG>: Tag 名
  • <KEY=VALUE>...: 一个或多个 key=value 对(至少 1 个)

示例

bash
# 单个
cnb-rs --repo wwvo/cnb-rs/cnb-rs repo tag annotation set v1.0.0 builder=ci

# 多个一次设置(覆盖已有 key)
cnb-rs --repo wwvo/cnb-rs/cnb-rs repo tag annotation set v1.0.0 \
    builder=github-actions \
    sbom=https://example.com/sbom.json \
    signed=true

API

步骤API方法
设置${CNB_API_ENDPOINT}/{repo}/-/git/tag-annotations/{tag}PUT

另请参阅

Released under the MIT License.