
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/reviewdog/action-golangci-lint/workflows/Docker%20Image%20CI/badge.svg](https://github.com/reviewdog/action-golangci-lint/actions) https://github.com/reviewdog/action-golangci-lint/workflows/depup/badge.svg](https://github.com/reviewdog/action-golangci-lint/actions?query=workflow%3Adepup) https://github.com/reviewdog/action-golangci-lint/workflows/release/badge.svg](https://github.com/reviewdog/action-golangci-lint/actions?query=workflow%3Arelease) https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)
该GitHub Action镜像用于在拉取请求(Pull Request)中运行https://github.com/golangci/golangci-lint%E4%BB%A3%E7%A0%81%E6%A3%80%E6%9F%A5%E5%B7%A5%E5%85%B7%EF%BC%8C%E5%B9%B6%E9%80%9A%E8%BF%87https://github.com/reviewdog/reviewdog%E5%B0%86%E6%A3%80%E6%9F%A5%E7%BB%93%E6%9E%9C%E7%9B%B4%E8%A7%82%E5%B1%95%E7%A4%BA%E5%9C%A8PR%E9%A1%B5%E9%9D%A2%EF%BC%8C%E5%B8%AE%E5%8A%A9%E5%9B%A2%E9%98%9F%E6%8F%90%E5%8D%87%E4%BB%A3%E7%A0%81%E5%AE%A1%E6%9F%A5%E6%95%88%E7%8E%87%E5%92%8C%E8%B4%A8%E9%87%8F%E3%80%82
${{ github.token }},使用预构建镜像时需显式设置为github_token: ${{ secrets.github_token }}golangci-lint run --out-format=line-number <参数>),也可通过https://github.com/golangci/golangci-lint#configuration%E8%B0%83%E6%95%B4%E8%A1%8C%E4%B8%BAinfo/warning/error),与reviewdog的-level参数一致github-pr-check/github-pr-review),与reviewdog的-reporter参数一致added/diff_context/file/nofilter),默认值为addedtrue/false),默认值为false.github/workflows/reviewdog.yml
ymlname: reviewdog on: [pull_request] jobs: golangci-lint: name: runner / golangci-lint runs-on: ubuntu-latest steps: - name: 检出代码到Go模块目录 uses: actions/checkout@v1 - name: 运行golangci-lint uses: reviewdog/action-golangci-lint@v1
.github/workflows/reviewdog.yml
ymlname: reviewdog on: [pull_request] jobs: # 注意:golangci-lint在同一行不会报告来自不同linter的多个错误,只会显示其中一个 golangci-lint: name: runner / golangci-lint runs-on: ubuntu-latest steps: - name: 检出代码到Go模块目录 uses: actions/checkout@v1 - name: 运行golangci-lint uses: reviewdog/action-golangci-lint@v1 with: # 可通过--config参数修改golangci-lint行为和目标目录 golangci_lint_flags: "--config=.github/.golangci.yml ./testdata" workdir: subdirectory/ # 通过golangci-lint二进制文件运行golint,级别为warning golint: name: runner / golint runs-on: ubuntu-latest steps: - name: 检出代码到Go模块目录 uses: actions/checkout@v1 - name: 运行golint uses: reviewdog/action-golangci-lint@v1 with: golangci_lint_flags: "--disable-all -E golint" tool_name: golint # 修改报告工具名称 level: warning # 此级别下GitHub状态检查不会失败 # 可添加更多支持的linter并配置不同参数 errcheck: name: runner / errcheck runs-on: ubuntu-latest steps: - name: 检出代码到Go模块目录 uses: actions/checkout@v1 - name: 运行errcheck uses: reviewdog/action-golangci-lint@v1 with: golangci_lint_flags: "--disable-all -E errcheck" tool_name: errcheck level: info
.github/workflows/reviewdog.yml
ymlname: reviewdog on: [pull_request] jobs: golangci-lint: name: runner / golangci-lint runs-on: ubuntu-latest steps: - name: 检出代码到Go模块目录 uses: actions/checkout@v1 - name: 运行golangci-lint uses: reviewdog/action-golangci-lint@v1 with: golangci_lint_flags: "--enable-all --exclude-use-default=false"
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

来自真实用户的反馈,见证轩辕镜像的优质服务