Skip to content

Commit

Permalink
Add git short sha to conda package version
Browse files Browse the repository at this point in the history
  • Loading branch information
jdye64 committed Jan 17, 2025
1 parent ae13d8d commit e88842e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conda/build_conda_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ echo "Using OUTPUT_DIR: $OUTPUT_DIR"
mkdir -p "${OUTPUT_DIR}/linux-64"

DATE_STRING="$(date +%y%m%d)"
GIT_SHA=$(git rev-parse --short HEAD)

##############################
# Build Packages
##############################
if [[ "${BUILD_NV_INGEST}" -eq 1 ]]; then
echo "Building nv_ingest..."
GIT_ROOT="${GIT_ROOT}" DATE_STRING="${DATE_STRING}" conda build "${NV_INGEST_DIR}" \
GIT_ROOT="${GIT_ROOT}" DATE_STRING="${DATE_STRING}" GIT_SHA="${GIT_SHA}" conda build "${NV_INGEST_DIR}" \
-c nvidia/label/dev -c rapidsai -c nvidia -c conda-forge -c pytorch \
--output-folder "${OUTPUT_DIR}" --no-anaconda-upload
else
Expand All @@ -56,7 +57,7 @@ fi

if [[ "${BUILD_NV_INGEST_CLIENT}" -eq 1 ]]; then
echo "Building nv_ingest_client..."
GIT_ROOT="${GIT_ROOT}/client" DATE_STRING="${DATE_STRING}" conda build "${NV_INGEST_CLIENT_DIR}" \
GIT_ROOT="${GIT_ROOT}/client" DATE_STRING="${DATE_STRING}" GIT_SHA="${GIT_SHA}" conda build "${NV_INGEST_CLIENT_DIR}" \
-c conda-forge \
--output-folder "${OUTPUT_DIR}" --no-anaconda-upload
else
Expand Down

0 comments on commit e88842e

Please sign in to comment.