diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b1bfb5..199c3d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,6 +115,7 @@ jobs: build-args: | AGNES_VERSION=${{ steps.meta.outputs.version }} RELEASE_CHANNEL=${{ steps.meta.outputs.channel }} + AGNES_COMMIT_SHA=${{ github.sha }} tags: | ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.channel }} ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.versioned_tag }} diff --git a/Dockerfile b/Dockerfile index 6cdbaa5..977204b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,10 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv ARG AGNES_VERSION=dev ARG RELEASE_CHANNEL=dev +ARG AGNES_COMMIT_SHA=unknown ENV AGNES_VERSION=${AGNES_VERSION} ENV RELEASE_CHANNEL=${RELEASE_CHANNEL} +ENV AGNES_COMMIT_SHA=${AGNES_COMMIT_SHA} WORKDIR /app