diff --git a/.github/workflows/build_images.yaml b/.github/workflows/build_images.yaml index 6647bb546..9f0df20b5 100644 --- a/.github/workflows/build_images.yaml +++ b/.github/workflows/build_images.yaml @@ -55,9 +55,11 @@ jobs: cp ./LICENSE ./ci/docker/context/LICENSE cp ./VERSION ./ci/docker/context/VERSION cp ./thirdparty/THIRD_PARTY_LICENSES ./ci/docker/context/THIRD_PARTY_LICENSES - - name: Copy Commit SHA + - name: Copy Commit SHA, commit time and branch run: | git rev-parse HEAD > ./ci/docker/context/COMMIT_SHA + git log -n1 --pretty='%ct' > ./ci/docker/context/COMMIT_TIME + git rev-parse --abbrev-ref HEAD > ./ci/docker/context/BRANCH - name: Login to NGC uses: docker/login-action@v3 with: diff --git a/ci/docker/Dockerfile b/ci/docker/Dockerfile index 8564f8d5d..5491b32ae 100644 --- a/ci/docker/Dockerfile +++ b/ci/docker/Dockerfile @@ -95,7 +95,7 @@ RUN mkdir -p /opt/cuopt && \ WORKDIR /opt/cuopt # Copy all static files in a single layer -COPY ./LICENSE ./VERSION ./THIRD_PARTY_LICENSES ./COMMIT_SHA /opt/cuopt/ +COPY ./LICENSE ./VERSION ./THIRD_PARTY_LICENSES ./COMMIT_SHA ./COMMIT_TIME ./BRANCH /opt/cuopt/ # Copy CUDA libraries from the cuda-libs stage COPY --from=cuda-libs /usr/local/cuda/lib64/libnvrtc* /usr/local/cuda/lib64/