Skip to content

Commit

Permalink
Adjust build.sh script to export DATE_STRING (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdye64 authored Jan 17, 2025
1 parent 25047c4 commit b06e06f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions conda/packages/nv_ingest/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

DATE_STRING="$(date +%y%m%d)"
export DATE_STRING
2 changes: 1 addition & 1 deletion conda/packages/nv_ingest/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% set name = data.get('name', 'nv_ingest') | lower %}
{% set version = data.get('version') %}
{% set py_version = environ['CONDA_PY'] %}
{% set date_string = "$(date +%y%m%d)" %}
{% set date_string = environ['DATE_STRING'] %}

# Determine Git root, falling back to default path ../../.. if Git is not available or the directory is not a Git repo
{% set git_root = environ.get('GIT_ROOT', '../../..') %}
Expand Down
4 changes: 4 additions & 0 deletions conda/packages/nv_ingest_client/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

DATE_STRING="$(date +%y%m%d)"
export DATE_STRING
2 changes: 1 addition & 1 deletion conda/packages/nv_ingest_client/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% set name = data.get('name', 'nv_ingest_client') | lower %}
{% set version = data.get('version') %}
{% set py_version = environ['CONDA_PY'] %}
{% set date_string = "$(date +%y%m%d)" %}
{% set date_string = environ['DATE_STRING'] %}

# Determine Git root, falling back to default path ../../.. if Git is not available or the directory is not a Git repo
{% set git_root = environ.get('GIT_ROOT', '../../../client') %}
Expand Down

0 comments on commit b06e06f

Please sign in to comment.