赞
踩
GitLab 是一个全球知名的一体化 DevOps 平台,很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLab :https://gitlab.cn/install?channel=content&utm_source=csdn 是 GitLab 在中国的发行版,专门为中国程序员服务。可以一键式部署极狐GitLab。
极狐GitLab 在 5 月 28 日正式发布了 AI 产品驭码CodeRider。现已开启免费试用,登录官网:https://coderider.gitlab.cn/ 即可申请试用。
更多关于极狐GitLab :https://gitlab.cn 或者 DevOps 的最佳实践,可以关注文末的极狐GitLab 公众号。
搜索【极狐GitLab】公众号,后台输入加群,备注gitlab,即可加入官方微信技术交流群。
使用如下 API 即可:
DELETE /projects/:id/registry/repositories/:repository_id/tags/:tag_name
参数说明:
535
仓库为例。1.0.0
为例。执行如下命令:
curl --request DELETE --header "PRIVATE-TOKEN: YOUR-PERSONAL-ACCESS-TOKEN" \ "https://jihulab.com/api/v4/projects/16274/registry/repositories/535/tags/1.0.0"
返回结果如下:
200
只返回了一个 200 成功状态码。再用 list 镜像 tag 的 API GET /registry/repositories/:id
来查看该 tag是否还存在:
curl --header "PRIVATE-TOKEN: YOUR-PERSONAL-ACCESS-TOKEN" \ "https://jihulab.com/api/v4/projects/16274/registry/repositories/535/tags"
返回值为:
[]
也就是说返回值为空。1.0.0
tag 被删除。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。