Skip to content

Commit 0040f39

Browse files
Create image tag in dockerfile so we can track commit in image.
1 parent c577102 commit 0040f39

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ ENV PYTHONUNBUFFERED=1
2828
# Copy from the cache instead of linking since it's a mounted volume
2929
ENV UV_LINK_MODE=copy
3030

31+
# Create imagetag.txt with build info
32+
ARG GITHUB_BRANCH
33+
ARG GITHUB_SHA
34+
ENV GITHUB_BRANCH=${GITHUB_BRANCH}
35+
ENV GITHUB_SHA=${GITHUB_SHA}
36+
3137
WORKDIR /app
3238

39+
RUN echo "${GITHUB_BRANCH}-${GITHUB_SHA}" > /app/imagetag.txt
40+
3341
# Install dependencies
3442
RUN --mount=type=cache,target=/root/.cache/uv \
3543
--mount=type=bind,source=uv.lock,target=uv.lock \

0 commit comments

Comments
 (0)