conductor-checkpoint-msg_01JhPXYdc6HGsoEW2f1USSyd
This commit is contained in:
parent
fa2cc39122
commit
0359ef7fe9
1 changed files with 54 additions and 2 deletions
56
.github/workflows/release-mcp-server.yml
vendored
56
.github/workflows/release-mcp-server.yml
vendored
|
|
@ -56,12 +56,48 @@ jobs:
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
|
run: |
|
||||||
|
# Get build date and git ref
|
||||||
|
echo "build_date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_OUTPUT
|
||||||
|
echo "vcs_ref=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Build Docker image (temp for version extraction)
|
||||||
|
uses: depot/build-push-action@v1
|
||||||
|
with:
|
||||||
|
project: v9jv1mlpwc
|
||||||
|
context: ./mcp_server
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
tags: temp-image:latest
|
||||||
|
build-args: |
|
||||||
|
MCP_SERVER_VERSION=${{ steps.version.outputs.version }}
|
||||||
|
BUILD_DATE=${{ steps.meta.outputs.build_date }}
|
||||||
|
VCS_REF=${{ steps.meta.outputs.vcs_ref }}
|
||||||
|
|
||||||
|
- name: Extract Graphiti Core version
|
||||||
|
id: graphiti
|
||||||
|
run: |
|
||||||
|
# Extract graphiti-core version from the built image
|
||||||
|
GRAPHITI_VERSION=$(docker run --rm temp-image:latest cat /app/.graphiti-core-version)
|
||||||
|
echo "graphiti_version=${GRAPHITI_VERSION}" >> $GITHUB_OUTPUT
|
||||||
|
echo "Graphiti Core Version: ${GRAPHITI_VERSION}"
|
||||||
|
|
||||||
|
- name: Generate Docker metadata
|
||||||
|
id: docker_meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=${{ steps.version.outputs.version }}
|
type=raw,value=${{ steps.version.outputs.version }}
|
||||||
|
type=raw,value=${{ steps.version.outputs.version }}-graphiti-${{ steps.graphiti.outputs.graphiti_version }}
|
||||||
type=raw,value=latest
|
type=raw,value=latest
|
||||||
|
labels: |
|
||||||
|
org.opencontainers.image.title=Graphiti MCP Server
|
||||||
|
org.opencontainers.image.description=MCP server for Graphiti knowledge graph
|
||||||
|
org.opencontainers.image.version=${{ steps.version.outputs.version }}
|
||||||
|
org.opencontainers.image.vendor=Zep AI
|
||||||
|
graphiti.core.version=${{ steps.graphiti.outputs.graphiti_version }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: depot/build-push-action@v1
|
uses: depot/build-push-action@v1
|
||||||
|
|
@ -70,5 +106,21 @@ jobs:
|
||||||
context: ./mcp_server
|
context: ./mcp_server
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||||||
|
build-args: |
|
||||||
|
MCP_SERVER_VERSION=${{ steps.version.outputs.version }}
|
||||||
|
BUILD_DATE=${{ steps.meta.outputs.build_date }}
|
||||||
|
VCS_REF=${{ steps.meta.outputs.vcs_ref }}
|
||||||
|
|
||||||
|
- name: Create release summary
|
||||||
|
run: |
|
||||||
|
echo "## MCP Server Release Summary" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "**MCP Server Version:** ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "**Graphiti Core Version:** ${{ steps.graphiti.outputs.graphiti_version }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "**VCS Ref:** ${{ steps.meta.outputs.vcs_ref }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "**Build Date:** ${{ steps.meta.outputs.build_date }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "### Docker Image Tags" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "${{ steps.docker_meta.outputs.tags }}" | tr ',' '\n' | sed 's/^/- /' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue