Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Docker Build for MCP SSE Server - Build and push image to GitHub Container Registry
# Docker Build for MCP AutoMem - Build and push image to GitHub Container Registry
#
# This workflow validates Docker builds for container-related changes and
# publishes release/manual images to GitHub Container Registry (ghcr.io).
#
# Required secrets:
# - GITHUB_TOKEN (auto-provided): Used to authenticate with GHCR

name: Docker Build (MCP SSE Server)
name: Docker Build (MCP AutoMem)

on:
push:
Expand All @@ -16,14 +16,14 @@ on:
- "mcp-sse-server/Dockerfile"
- "mcp-sse-server/package.json"
- "mcp-sse-server/package-lock.json"
- ".github/workflows/docker-build-mcp-sse-server.yml"
- ".github/workflows/docker-build-mcp-automem.yml"
pull_request:
branches: [main]
paths:
- "mcp-sse-server/Dockerfile"
- "mcp-sse-server/package.json"
- "mcp-sse-server/package-lock.json"
- ".github/workflows/docker-build-mcp-sse-server.yml"
- ".github/workflows/docker-build-mcp-automem.yml"
workflow_dispatch:
inputs:
tag:
Expand All @@ -33,7 +33,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}/mcp-sse-server
IMAGE_NAME: ${{ github.repository_owner }}/mcp-automem

jobs:
build:
Expand Down Expand Up @@ -63,7 +63,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ github.repository }}/mcp-sse-server
tags: |
type=ref,event=branch
type=ref,event=pr
Expand All @@ -72,6 +74,7 @@ jobs:
type=semver,pattern={{major}}
type=sha,prefix=sha-,suffix=,format=short
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}

- name: Build and optionally push Docker image
Expand All @@ -97,7 +100,7 @@ jobs:
- name: Print image digest
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
run: |
echo "MCP SSE Server image pushed successfully!"
echo "MCP AutoMem image pushed successfully!"
echo "Digest: ${{ steps.push.outputs.digest }}"
echo "Tags:"
echo "${{ steps.meta.outputs.tags }}"
1 change: 1 addition & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
type=semver,pattern={{major}}
type=sha,prefix=sha-,suffix=,format=short
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=stable,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}

- name: Build and optionally push Docker image
Expand Down
Loading