Skip to content

ci: 自动发布 Docker 镜像到 GHCR - #3

Merged
CoderDoubleflower merged 1 commit into
mainfrom
chore/publish-ghcr-image
Sep 4, 2026
Merged

ci: 自动发布 Docker 镜像到 GHCR#3
CoderDoubleflower merged 1 commit into
mainfrom
chore/publish-ghcr-image

Conversation

@CoderDoubleflower

Copy link
Copy Markdown
Owner

变更

  • GitHub Actions 增加 packages: write 权限
  • 登录 GitHub Container Registry(GHCR)
  • PR 仅构建验证,不推送镜像
  • main 分支 push 时发布:
    • ghcr.io/coderdoubleflower/sub2apiauditer:latest
    • ghcr.io/coderdoubleflower/sub2apiauditer:sha-<shortsha>
  • 同时构建 linux/amd64linux/arm64
  • 启用 GitHub Actions BuildKit 缓存

无需额外配置 Docker Hub 密钥或 PAT,发布使用仓库自带的 GITHUB_TOKEN

Copilot AI lite review requested due to automatic review settings September 4, 2026 02:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CoderDoubleflower
CoderDoubleflower merged commit 0b19375 into main Sep 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants