File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -126,5 +126,4 @@ jobs:
126126 DIGEST : ${{ steps.build-and-push.outputs.digest }}
127127 # This step uses the identity token to provision an ephemeral certificate
128128 # against the sigstore community Fulcio instance.
129- run : echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
130-
129+ run : echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
Original file line number Diff line number Diff line change 11name : Publish to MCP Registry
22
33on :
4- repository_dispatch :
5- types : [docker-published ] # Triggered after Docker image is published
4+ push :
5+ tags : ["v*" ] # Triggers on version tags like v1.0.0
66 workflow_dispatch : # Allow manual triggering
77
88jobs :
2323
2424 - name : Fetch tags
2525 run : |
26- if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
27- echo "Triggered by docker-published event for tag: ${{ github.event.client_payload.tag }}"
28- elif [[ "${{ github.ref_type }}" != "tag" ]]; then
26+ if [[ "${{ github.ref_type }}" != "tag" ]]; then
2927 git fetch --tags
3028 else
3129 echo "Skipping tag fetch - already on tag ${{ github.ref_name }}"
5856
5957 - name : Update server.json version
6058 run : |
61- if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
62- TAG_VERSION=$(echo "${{ github.event.client_payload.tag }}" | sed 's/^v//')
63- echo "Using tag from dispatch: ${{ github.event.client_payload.tag }}"
64- elif [[ "${{ github.ref_type }}" == "tag" ]]; then
59+ if [[ "${{ github.ref_type }}" == "tag" ]]; then
6560 TAG_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
6661 else
6762 LATEST_TAG=$(git tag --sort=-version:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$' | head -n 1)
You can’t perform that action at this time.
0 commit comments