ci: lowercase the GHCR image tag for the mcp-server publish job#154
Open
hanwencheng wants to merge 1 commit into
Open
ci: lowercase the GHCR image tag for the mcp-server publish job#154hanwencheng wants to merge 1 commit into
hanwencheng wants to merge 1 commit into
Conversation
… lowercase)
The image job tagged ghcr.io/${{ github.repository }}/agentkeys-mcp-server, but github.repository keeps the repo's real casing (litentry/agentKeys — capital K), so docker buildx rejected it: 'invalid tag ... repository name must be lowercase'. The job runs only on push to main (skips on PRs), so it first failed on the #149 merge (Actions run 26719167517).
Fix: a 'Resolve lowercase image name' step lowercases $GITHUB_REPOSITORY via tr (portable to bash 3.2 per CLAUDE.md, not the bash-4 ${,,}) → ghcr.io/litentry/agentkeys/agentkeys-mcp-server, fed to both :latest and :$sha tags. YAML validated; tr output verified locally.
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.
Problem
The
imagejob in.github/workflows/mcp-server.yml(build + publish the mcp-server container) tagged the imageghcr.io/${{ github.repository }}/agentkeys-mcp-server.github.repositorypreserves the repo's real casing —litentry/agentKeys(capital K) — anddocker buildxrejects it:The job is gated
if: github.event_name == 'push' && github.ref == 'refs/heads/main', so it skips on PRs and only runs on push-to-main— which is why it passed #149's PR checks and first failed on the merge (Actions run 26719167517).Fix
A
Resolve lowercase image namestep lowercases$GITHUB_REPOSITORYviatr '[:upper:]' '[:lower:]'(portable to bash 3.2 per CLAUDE.md — not the bash-4${,,}) →ghcr.io/litentry/agentkeys/agentkeys-mcp-server, fed to both the:latestand:<sha>tags.Validated locally: the workflow YAML parses, and the
trstep output isghcr.io/litentry/agentkeys/agentkeys-mcp-server(all lowercase). The job only runs on merge tomain, so it is exercised when this lands.🤖 Generated with Claude Code