Skip to content

Commit b69d1b6

Browse files
authored
[docker-version] fix(docker): add build args for versioning in Docker image (#54)
1 parent a446171 commit b69d1b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build_and_push_docker_image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
platforms: linux/amd64,linux/arm64
6161
push: true
6262
tags: ${{ steps.meta.outputs.tags }}
63+
build-args: |
64+
VERSION=${{ github.event.release.tag_name || inputs.tag_name }}
6365
provenance: false # Prevents unknown/unknown Attestation Manifests
6466
sbom: false # Prevents SBOM Manifests
6567
cache-from: type=gha

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
55
&& rm -rf /var/lib/apt/lists/*
66

77
RUN pip install uv
8-
ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OLLAMA_MCP_BRIDGE=0.1.0
8+
ARG VERSION=0.1.0
9+
ENV SETUPTOOLS_SCM_PRETEND_VERSION_FOR_OLLAMA_MCP_BRIDGE=${VERSION}
910

1011
COPY . ./
1112

0 commit comments

Comments
 (0)