如何使用 API list 极狐GitLab 容器镜像仓库中的 tag?

GitLab 是一个全球知名的一体化 DevOps 平台,很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLabhttps://gitlab.cn/install?channel=content\&utm_source=csdn 是 GitLab 在中国的发行版,专门为中国程序员服务。可以一键式部署极狐GitLab。

极狐GitLab 在 5 月 28 日正式发布了 AI 产品驭码CodeRider。现已开启免费试用,登录官网:https://coderider.gitlab.cn/ 即可申请试用。

更多关于极狐GitLabhttps://gitlab.cn 或者 DevOps 的最佳实践,可以关注文末的极狐GitLab 公众号。

学习极狐GitLab 的相关资料:

  1. 极狐GitLab 官网https://gitlab.cn
  2. 极狐GitLab 官网文档https://docs.gitlab.cn
  3. 极狐GitLab 论坛https://forum.gitlab.cn/
  4. 极狐GitLab 安装配置https://gitlab.cn/install
  5. 极狐GitLab 资源中心https://resources.gitlab.cn/
  6. AI 产品驭码CodeRiderhttps://coderider.gitlab.cn/

搜索【极狐GitLab】公众号,后台输入加群 ,备注gitlab,即可加入官方微信技术交流群。

关联阅读

前面的文章中使用 GET /registry/repositories/:idlist 出了极狐GitLab 镜像仓库中的镜像详情。下面使用 API 来 list 某个镜像仓库中的 tag 信息。

API 如下:

复制代码
GET /projects/:id/registry/repositories/:repository_id/tags

以上面的 535镜像仓库为例,可以使用如下 API 来 list tag:

复制代码
curl --header "PRIVATE-TOKEN: YOUR-PERSONAL-ACCESS-TOKEN" \ "https://jihulab.com/api/v4/projects/16274/registry/repositories/535/tags"

可以看到如下返回结果:

复制代码
[
  {
    "name": "1.0.0",
    "path": "jh-xiaomage-devops/go-demo:1.0.0",
    "location": "registry.jihulab.com/jh-xiaomage-devops/go-demo:1.0.0"
  }
]

可以看到镜像仓库 go-demo中只有一个镜像,tag 为 1.0.0

相关推荐
2601_9623878213 小时前
web自动化测试实战教程【selenium/unittest/pytest】【共193课
selenium·pytest·devops·web自动化测试·unittest
Wang's Blog14 小时前
Vibe Coding一人即团队系列51: AI赋能项目交付与产品文档自动化生成实践
人工智能·自动化·devops
Patrick_Wilson15 小时前
为什么gitlab的MR会默认有一个merge commit
前端·git·gitlab
虎王物联18 小时前
Docker BuildKit多阶段构建:IoT固件交叉编译流水线实战
运维·物联网·ci/cd·docker·容器·物联网嵌入式
LlmCraft|大模型工程实践19 小时前
14. CI/CD 流水线中集成 Docker:GitHub Actions 自动构建部署
ci/cd·docker·github
极小狐19 小时前
极狐GitLab Duo 功能更新:扩展 MCP 工具集、支持 MR 事件触发
运维·gitlab·agent·mr·极狐gitlab·mcp·极狐gitlab duo
2501_928996221 天前
GitLab CVE-2026-19478漏洞解析:Gitaly ref攻击绕过审计与中科热备下的代码资产保护重构
重构·gitlab
秦渝兴1 天前
GitLab CI/CD 流水线实战
ci/cd·gitlab
gs801402 天前
告别 CI/CD 误伤与红条:Docker 镜像智能清理与优雅防冲突实战
ci/cd·docker·容器
leeyi2 天前
DDD 六条铁律:让 CI 替你骂人——go-arch-lint 门禁实战(第104篇)
ci/cd·agent·领域驱动设计