Skip to content

Commit 9c5c4ba

Browse files
luarssclaude
andcommitted
fix: use docker buildx to set OCI manifest annotation for MCP registry
Regular docker build LABEL only sets image config labels. The MCP registry requires manifest-level annotations, which need buildx --annotation flag with --push. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent be19052 commit 9c5c4ba

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,24 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
2323

24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
2427
- name: Log in to GitHub Container Registry
2528
uses: docker/login-action@v3
2629
with:
2730
registry: ghcr.io
2831
username: ${{ github.actor }}
2932
password: ${{ secrets.GITHUB_TOKEN }}
3033

31-
- name: Build Docker image
32-
run: make build
33-
34-
- name: Push Docker image
34+
- name: Build and push Docker image
3535
run: |
3636
ORFS_VER=$(make --no-print-directory print-ORFS_VERSION)
37-
docker tag ghcr.io/luarss/openroad-mcp:$ORFS_VER ghcr.io/luarss/openroad-mcp:"$IMAGE_TAG"
38-
docker tag ghcr.io/luarss/openroad-mcp:$ORFS_VER ghcr.io/luarss/openroad-mcp:latest
39-
docker push ghcr.io/luarss/openroad-mcp:"$IMAGE_TAG"
40-
docker push ghcr.io/luarss/openroad-mcp:latest
37+
docker buildx build \
38+
--build-arg ORFS_VERSION=$ORFS_VER \
39+
--build-arg UV_VERSION=$(make --no-print-directory print-UV_VERSION) \
40+
--annotation "manifest:io.modelcontextprotocol.server.name=io.github.luarss/openroad-mcp" \
41+
-t ghcr.io/luarss/openroad-mcp:$ORFS_VER \
42+
-t ghcr.io/luarss/openroad-mcp:"$IMAGE_TAG" \
43+
-t ghcr.io/luarss/openroad-mcp:latest \
44+
--push .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "openroad-mcp"
7-
version = "0.3.0.dev6"
7+
version = "0.3.0.dev7"
88
authors = [
99
{name = "Precision Innovations", email="jluar@precisioninno.com"},
1010
]

0 commit comments

Comments
 (0)