Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve registry release reliability#1174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some comments aren't visible on the classic Files Changed page.

16 changes: 16 additions & 0 deletions.github/workflows/docker-publish.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -127,3 +127,19 @@ jobs:
# This step uses the identity token to provision an ephemeral certificate
# against the sigstore community Fulcio instance.
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

- name: Trigger registry publication
if: ${{ github.event_name != 'pull_request' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') }}
uses: actions/github-script@v7
with:
script: |
await github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: context.repo.repo,
event_type: 'docker-published',
client_payload: {
tag: context.ref.replace('refs/tags/', ''),
sha: context.sha,
image_digest: '${{ steps.build-and-push.outputs.digest }}'
}
});
34 changes: 30 additions & 4 deletions.github/workflows/registry-releaser.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
name: Publish to MCP Registry

on:
push:
tags: ["v*"] #Triggers on version tags like v1.0.0
repository_dispatch:
types: [docker-published] #Triggered after Docker image is published
workflow_dispatch: # Allow manual triggering

jobs:
Expand All@@ -23,12 +23,35 @@ jobs:

- name: Fetch tags
run: |
if [[ "${{ github.ref_type }}" != "tag" ]]; then
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
echo "Triggered by docker-published event for tag: ${{ github.event.client_payload.tag }}"
elif [[ "${{ github.ref_type }}" != "tag" ]]; then
git fetch --tags
else
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
fi

- name: Wait for Docker image
run: |
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
TAG="${{ github.event.client_payload.tag }}"
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
TAG="${{ github.ref_name }}"
else
TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | head -n1)
fi
IMAGE="ghcr.io/github/github-mcp-server:$TAG"

for i in {1..6}; do
if docker manifest inspect "$IMAGE" &>/dev/null; then
echo "✅ Docker image ready: $TAG"
break
fi
[ $i -eq 6 ] && { echo "❌ Timeout waiting for $TAG after 3 minutes"; exit 1; }
echo "⏳ Waiting for Docker image ($i/6)..."
sleep 30
done

- name: Install MCP Publisher
run: |
git clone --quiet https://github.com/modelcontextprotocol/registry publisher-repo
Expand All@@ -37,7 +60,10 @@ jobs:

- name: Update server.json version
run: |
if [[ "${{ github.ref_type }}" == "tag" ]]; then
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
TAG_VERSION=$(echo "${{ github.event.client_payload.tag }}" | sed 's/^v//')
echo "Using tag from dispatch: ${{ github.event.client_payload.tag }}"
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
TAG_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
else
LATEST_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$' | head -n 1)
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp