You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

镜像registry.gitlab.com/gitlab-org/release-cli:latest使用何种包管理器?

解决GitLab CI release-cli镜像安装Git失败的问题
  • 镜像registry.gitlab.com/gitlab-org/release-cli:latest基于Alpine Linux,使用的包管理器是apk,而非apt。
  • 修改你的before_script配置为以下内容即可成功安装Git:
.some_script_before: &some_script_before
  - apk update
  - apk add --no-cache git
  • 补充说明:--no-cache参数可避免在镜像中遗留缓存文件,缩小镜像体积,适配CI环境的轻量化需求。

内容的提问来源于stack exchange,提问作者Ralf Wickum

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 06:48:05