Skip to content

Commit 42dc16f

Browse files
author
Zvi Fried
committed
feat/general-refinement - Implement dynamic Docker image versioning and fix merge conflicts
- Replace hardcoded version '1.0.0' with dynamic VERSION build argument in Dockerfile - Add VERSION build arg with 'latest' default for flexible versioning - Update CI workflow to pass development version (dev-{commit-sha}) for test builds - Update release workflow to pass actual tag version for production builds - Remove HTTP/port configurations to keep MCP server stdio-only as intended - Maintain Python 3.13-slim base images while resolving main branch conflicts - Ensure proper version tracking across PyPI packages and Docker images - Enable automatic versioning without manual Dockerfile updates
1 parent db94dde commit 42dc16f

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,7 @@ jobs:
139139
context: .
140140
push: false
141141
tags: mcp-as-a-judge:test
142+
build-args: |
143+
VERSION=dev-${{ github.sha }}
142144
cache-from: type=gha
143145
cache-to: type=gha,mode=max

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ jobs:
9999
push: true
100100
tags: ${{ steps.meta.outputs.tags }}
101101
labels: ${{ steps.meta.outputs.labels }}
102+
build-args: |
103+
VERSION=${{ steps.version.outputs.VERSION }}
102104
cache-from: type=gha
103105
cache-to: type=gha,mode=max
104106

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Multi-stage build for production-ready MCP as a Judge server
22
FROM python:3.13-slim AS builder
33

4+
# Set build arguments
5+
ARG VERSION=latest
6+
47
# Set environment variables
58
ENV PYTHONUNBUFFERED=1 \
69
PYTHONDONTWRITEBYTECODE=1 \
@@ -32,6 +35,9 @@ RUN .venv/bin/uv pip install -e .
3235
# Production stage
3336
FROM python:3.13-slim AS production
3437

38+
# Set build arguments
39+
ARG VERSION=latest
40+
3541
# Set environment variables
3642
ENV PYTHONUNBUFFERED=1 \
3743
PYTHONDONTWRITEBYTECODE=1 \
@@ -72,7 +78,7 @@ CMD ["mcp-as-a-judge"]
7278
# Labels for metadata
7379
LABEL org.opencontainers.image.title="MCP as a Judge" \
7480
org.opencontainers.image.description="AI-powered code evaluation and software engineering best practices enforcement" \
75-
org.opencontainers.image.version="1.0.0" \
81+
org.opencontainers.image.version="${VERSION}" \
7682
org.opencontainers.image.authors="Zvi Fried" \
7783
org.opencontainers.image.source="https://github.com/hepivax/mcp-as-a-judge" \
7884
org.opencontainers.image.licenses="MIT"

0 commit comments

Comments
 (0)