Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions hack/package-helm-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
# Packages the Helm chart for release or for Prow / Cloud Build jobs that push
# OCI charts to staging/promotion registries.

set -o pipefail
set -euo pipefail

REPO_ROOT=$(git rev-parse --show-toplevel)
cd "${REPO_ROOT}"

# if arg1 is set, it will be used as the version number
if [ -z "$1" ]; then
VERSION=$(awk -F= '/^VERSION/ { print $2 }' versions.mk | tr -d '[:space:]')
if [ -z "${1:-}" ]; then
VERSION=$(make --no-print-directory -f "${REPO_ROOT}/versions.mk" print-VERSION)
else
VERSION=$1
fi
Expand All @@ -36,4 +39,4 @@ VERSION="${VERSION#v}"
# should be used here.

# Create release assets to be uploaded
helm package deployments/helm/dra-driver-nvidia-gpu/ --version $VERSION --app-version $VERSION
helm package "${REPO_ROOT}/deployments/helm/dra-driver-nvidia-gpu/" --version "${VERSION}" --app-version "${VERSION}"