Repository navigation
feat(ci): GitHub Actions Docker publish to GHCR (v0.5.1) - #88
Merged
Merged
Conversation
Host instruction (rant 2026-08-18T21:49:19), referencing openlocalrouter's docker-publish.yml. - .github/workflows/docker-publish.yml: GHCR publish on main push + v* tags (checkout/buildx/ghcr login/metadata tags branch+tag+sha+latest/build-push with gha cache) — IMAGE_NAME auto-derives ghcr.io/argszero/aitokenpool - .dockerignore: exclude .git/.github/target/data/config.toml/.emrg/docs/*.md (keeps ui/, src/, Cargo.toml, config.example.toml per Dockerfile COPY) - README: v0.5.1 status line + docker pull ghcr.io/argszero/aitokenpool:latest - Cargo.toml: 0.5.0 -> 0.5.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Host instruction (rant 2026-08-18T21:49:19, project: aitokenpool) to add container image publishing, referencing
openlocalrouter'sdocker-publish.yml.Changes
mainpush +v*tags; checkout → Docker Buildx → GHCR login (secrets.GITHUB_TOKEN) → Docker meta (tags: branch / tag / short-sha /lateston default branch) → build & push withtype=ghacache.IMAGE_NAMEauto-derivesghcr.io/argszero/aitokenpoolfromgithub.repository..git/,.github/,target/,data/,config/config.toml,.emrg/,docs/,*.md,.DS_Store— keepsui//src//Cargo.toml/Cargo.lock/config/config.example.toml(all COPYed by the Dockerfile).docker pull ghcr.io/argszero/aitokenpool:latestunder the Docker section; healthz version → 0.5.1.Related Issue
Host rant 2026-08-18T21:49:19.704962 (新增 GitHub Actions Docker 发布 workflow,参考 openlocalrouter). No GitHub issue number.
Rant verbatim (acceptance criteria):
Tests
cargo test全部通过(102/102)cargo fmt --check通过cargo clippy --all-targets -- -D warnings通过Checklist