Skip to content

Update index.md #1083

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions rancher/v1.6/zh/cattle/webhook-service/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ lang: zh
* [服务扩缩容](#服务扩缩容)
* [主机数量增减](#主机弹性伸缩)
* [基于 DockerHub 标签的更新来更新一个服务](#基于-docker-hub-webhooks-升级服务)
* [基于私有仓库标签更新一个服务](#基于私有仓库升级服务)

<a id="scaling-service-example"></a>

Expand Down Expand Up @@ -154,3 +155,21 @@ Rancher 可以通过克隆用 Rancherc 创建的, 并且已经存在的主机
}
}
```

#### 基于私有仓库升级服务

默认是 <address> 地址是 Docker Hub 地址。 <address> 需要替换成私有仓库地址。

使用 Rancher 的 webhook , `POST` 请求中需要包含以下字段:

```json
{
"push_data": {
"tag": <pushedTag>
},
"repository": {
"repo_name": <address>/<image>
}
}
```