创建触发器
<p class="shortdesc">本文介绍如何创建镜像的触发器。</p>
<section class="section prereq" id="Create_trigger__prereq_jlt_bs4_dsb"><div class="tasklabel"><h2 class="doc-tairway">前提条件</h2></div>
<p class="p">您已成功创建镜像仓库。</p>
</section>
<section><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps"><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="/console/ecr/namespace" target="_blank">容器镜像服务ECR控制台</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击左侧导航栏<span class="ph uicontrol">镜像仓库</span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击目标仓库<span class="ph uicontrol">操作</span>列的<span class="ph uicontrol">更多</span>,在下拉菜单中选择<span class="ph uicontrol">触发器</span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">创建触发器</span>。</span>
<div class="itemgroup info">
<table class="table"><caption></caption><colgroup><col style="width:42.91845493562232%"><col style="width:57.08154506437768%"></colgroup><thead class="thead">
<tr class="row">
<th class="entry colsep-1 rowsep-1" id="Create_trigger__entry__1">
<p class="p"> 配置项 </p>
</th>
<th class="entry colsep-1 rowsep-1" id="Create_trigger__entry__2">
<p class="p"> 说明 </p>
</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__1 ">
<p class="p"> 触发器名称 </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__2 ">
<p class="p">该触发器的名称。</p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__1 ">
<p class="p"> 触发器URL </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__2 ">
<p class="p">触发器URL,在触发器被触发时调用该URL。</p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__1 ">
<p class="p"> 触发方式 </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__2 ">
<p class="p">全部触发或者表达式触发,如果选择表达式触发,需填写正则表达式,表达式匹配到的版本会触发该触发器。</p>
</td>
</tr>
<tr class="row">
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__1 ">
<p class="p"> 链接测试 </p>
</td>
<td class="entry colsep-1 rowsep-1" headers="Create_trigger__entry__2 ">
<p class="p"> 配置好URL后,可测试是否联通 </p>
</td>
</tr>
</tbody></table>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">单击<span class="ph uicontrol">确定</span>。</span>
</li></ol></section>
<section class="section result"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div>
<p class="p">在<span class="keyword wintitle">触发器</span>页面的触发器列表,可见刚创建的触发器。</p>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!