Skip to content

Commit 65564fb

Browse files
committed
Add Docker image readiness check with timeout in workflow
1 parent f6ea140 commit 65564fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/registry-releaser.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@ jobs:
2929
echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
3030
fi
3131
32+
- name: Wait for Docker image
33+
run: |
34+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
35+
TAG="${{ github.ref_name }}"
36+
else
37+
TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+' | head -n1)
38+
fi
39+
IMAGE="ghcr.io/github/github-mcp-server:$TAG"
40+
41+
for i in {1..6}; do
42+
if docker manifest inspect "$IMAGE" &>/dev/null; then
43+
echo "✅ Docker image ready: $TAG"
44+
break
45+
fi
46+
[ $i -eq 6 ] && { echo "❌ Timeout waiting for $TAG after 3 minutes"; exit 1; }
47+
echo "⏳ Waiting for Docker image ($i/6)..."
48+
sleep 30
49+
done
50+
3251
- name: Install MCP Publisher
3352
run: |
3453
git clone --quiet https://github.com/modelcontextprotocol/registry publisher-repo

0 commit comments

Comments
 (0)