mirror of
https://github.com/rancher/os.git
synced 2025-08-29 19:44:22 +00:00
25 lines
454 B
Bash
Executable File
25 lines
454 B
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
|
|
if ! hash helm 2>/dev/null; then
|
|
exit 0
|
|
fi
|
|
|
|
cd $(dirname $0)/..
|
|
. ./scripts/version
|
|
|
|
rm -rf build/chart
|
|
mkdir -p build dist/artifacts
|
|
cp -rf chart build/
|
|
|
|
sed -i \
|
|
-e 's/version:.*/version: '${HELM_VERSION}'/' \
|
|
-e 's/appVersion:.*/appVersion: '${HELM_VERSION}'/' \
|
|
build/chart/Chart.yaml
|
|
|
|
sed -i \
|
|
-e 's/tag:.*/tag: '${HELM_TAG}'/' \
|
|
build/chart/values.yaml
|
|
|
|
helm package -d ./dist/artifacts ./build/chart
|