cogito是一个轻量且友好的Concourse资源,主要用于在CI/CD流水线中更新GitHub提交状态,并支持可选地向Google Chat发送通知。该镜像设计简洁,易于集成,能够帮助开发团队实时跟踪流水线执行结果。详细信息可参考项目GitHub仓库:[***]
yamlresource_types: - name: cogito type: docker-image source: repository: pix4d/cogito # 请根据实际镜像仓库地址调整
yamlresources: - name: update-github-status type: cogito source: github_token: ((github-personal-access-token)) # GitHub访问令牌,需有repo:status权限 google_chat_webhook: ((google-chat-webhook)) # 可选,Google Chat Webhook URL
yamljobs: - name: test-and-update-status plan: - get: code trigger: true - task: run-tests config: # 测试任务配置... - put: update-github-status params: commit: code/git/sha # 提交SHA值 status: success # 状态值,可选:pending、success、failure、error context: concourse/test # GitHub状态上下文,用于区分不同流水线 description: "Tests passed successfully" # 状态描述信息
| 参数名 | 类型 | 描述 | 是否必填 |
|---|---|---|---|
| github_token | string | GitHub个人访问令牌,需包含repo:status权限 | 是 |
| google_chat_webhook | string | Google Chat Webhook URL,用于发送通知 | 否 |
| commit | string | 目标GitHub提交的SHA值 | 是 |
| status | string | 提交状态,可选值:pending、success、failure、error | 是 |
| context | string | 状态上下文标识符,用于在GitHub界面区分不同来源的状态更新 | 否 |
| description | string | 状态描述文本,将显示在GitHub提交状态中 | 否 |
注:完整配置说明及更多高级用法,请参考项目GitHub仓库:[]
来自真实用户的反馈,见证轩辕镜像的优质服务
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像加速服务
在 Docker Desktop 配置镜像加速
Docker Compose 项目配置加速
Kubernetes 集群配置 Containerd
在宝塔面板一键配置镜像加速
Synology 群晖 NAS 配置加速
飞牛 fnOS 系统配置镜像加速
极空间 NAS 系统配置加速服务
爱快 iKuai 路由系统配置加速
绿联 NAS 系统配置镜像加速
QNAP 威联通 NAS 配置加速
Podman 容器引擎配置加速
HPC 科学计算容器配置加速
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名加速
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429