
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
世界是个舞台,给它一个流水线。
StageFreight是一款声明式生命周期运行时,以Git为事实来源,在GitOps工作流、Kubernetes、Docker和CI生态系统中执行操作员定义的意图。它是开源、自构建的工具,通过单一Go二进制文件替代脆弱的Shell脚本CI pipeline,所有阶段均可通过.stagefreight.yml配置文件管理。
https://img.shields.io/badge/GitHub-source-***?logo=github](https://github.com/PrPlanIT/StageFreight) https://img.shields.io/badge/GitLab-source-FC6D26?logo=gitlab]([***] https://goreportcard.com/badge/github.com/PrPlanIT/StageFreight](https://goreportcard.com/report/github.com/PrPlanIT/StageFreight) https://pkg.go.dev/badge/github.com/PrPlanIT/StageFreight.svg](https://pkg.go.dev/github.com/PrPlanIT/StageFreight) https://img.shields.io/github/last-commit/PrPlanIT/StageFreight](https://github.com/PrPlanIT/StageFreight/commits) https://img.shields.io/github/issues/PrPlanIT/StageFreight](https://github.com/PrPlanIT/StageFreight/issues) !https://img.shields.io/github/issues-pr/PrPlanIT/StageFreight https://img.shields.io/github/contributors/PrPlanIT/StageFreight](https://github.com/PrPlanIT/StageFreight/graphs/contributors)
https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/build.svg]([] https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/license.svg](https://github.com/PrPlanIT/StageFreight/blob/main/LICENSE) https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/release.svg](https://github.com/PrPlanIT/StageFreight/releases) !https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/updated.svg https://img.shields.io/badge/donate-FF5E5B?logo=***&logoColor=white]([] https://img.shields.io/badge/sponsor-EA4AAA?logo=github***&logoColor=white](https://github.com/***/PrPlanIT)
https://img.shields.io/badge/Docker-prplanit%2Fstagefreight-2496ED?logo=docker&logoColor=white](https://hub.docker.com/r/prplanit/stagefreight) https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/pulls.svg](https://hub.docker.com/r/prplanit/stagefreight)
https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/latest.svg](https://hub.docker.com/r/prplanit/stagefreight/tags?name=latest) !https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/release-updated.svg https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/release-size.svg](https://hub.docker.com/r/prplanit/stagefreight/tags?name=v%7Bbase%7D) https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/latest-dev.svg](https://hub.docker.com/r/prplanit/stagefreight/tags?name=latest-dev) !https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/dev-updated.svg https://raw.githubusercontent.com/PrPlanIT/StageFreight/main/.stagefreight/badges/dev-size.svg](https://hub.docker.com/r/prplanit/stagefreight/tags?name=latest-dev)
docker buildx构建多平台镜像!否定)stagefreight docker build生成1. 编写.stagefreight.yml配置文件
yaml# .stagefreight.yml version: 1 builds: - id: myapp kind: docker platforms: [linux/amd64] targets: - id: dockerhub kind: registry build: myapp url: docker.io path: yourorg/yourapp tags: ["{version}", "latest"] when: { events: [tag] } credentials: DOCKER
2. GitLab CI集成
yaml# .gitlab-ci.yml build-image: image: docker.xuanyuan.run/prplanit/stagefreight:latest-dev services: - docker.io/library/docker:27-dind script: - stagefreight docker build rules: - if: '$CI_COMMIT_TAG'
3. 本地运行
bashdocker run --rm -v "$(pwd)":/src -w /src \ -v /var/run/docker.sock:/var/run/docker.sock \ docker.xuanyuan.run/prplanit/stagefreight:latest-dev \ sh -c 'git config --global --add safe.directory /src && stagefreight docker build --local'
stagefreight docker build # 检测→规划→Lint→构建→推送→保留策略执行 stagefreight docker readme # 将README同步至容器Registry stagefreight lint # 对工作树运行Lint模块 stagefreight security scan # Trivy+Grype扫描+SBOM生成 stagefreight release create # 创建发布并同步至多个平台 stagefreight release notes # 从Git日志生成发布说明 stagefreight release badge # 生成并提交发布状态徽章SVG stagefreight release prune # 通过保留策略清理旧发布 stagefreight badge generate # 从配置生成SVG徽章 stagefreight narrator run # 将叙述项组合到目标文件 stagefreight narrator compose # 临时CLI驱动的组合 stagefreight docs generate # 生成CLI+配置参考文档 stagefreight component docs # 生成组件输入文档 stagefreight dependency update # 更新依赖并分析新鲜度 stagefreight migrate # 将配置迁移至最新 schema 版本 stagefreight version # 打印版本信息
!https://img.shields.io/badge/alpine-3.24.1-0078D4?style=flat !https://img.shields.io/badge/golang-1.26.4-0078D4?style=flat
!https://img.shields.io/badge/chafa-555?style=flat !https://img.shields.io/badge/git-555?style=flat !https://img.shields.io/badge/tree-555?style=flat
本软件按"原样"提供,不提供任何形式的担保。开发者不对功能、性能或可用性做任何承诺。对于因使用本软件导致的任何后果,开发者不承担责任。
采用https://github.com/PrPlanIT/StageFreight/blob/main/LICENSE%E8%AE%B8%E5%8F%AF%E8%AF%81%E5%88%86%E5%8F%91%E3%80%82%E5%95%86%E4%B8%9A%E8%AE%B8%E5%8F%AF%E8%AF%B7%E5%8F%82%E8%80%83https://github.com/PrPlanIT/StageFreight/blob/main/docs/LICENSING.md%E3%80%82
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务