2021-01-15 06:54:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $(dirname $0)
|
|
|
|
|
2021-02-08 21:33:55 +00:00
|
|
|
source ./version
|
2021-01-15 06:54:43 +00:00
|
|
|
|
2021-05-17 21:16:05 +00:00
|
|
|
echo "Pulling in charts-build-scripts version ${CHARTS_BUILD_SCRIPTS_REPO}@${CHARTS_BUILD_SCRIPT_VERSION}"
|
2021-01-15 06:54:43 +00:00
|
|
|
|
|
|
|
rm -rf ../bin
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -rf charts-build-scripts
|
2021-05-17 21:16:05 +00:00
|
|
|
git clone --depth 1 --branch $CHARTS_BUILD_SCRIPT_VERSION $CHARTS_BUILD_SCRIPTS_REPO 2>/dev/null
|
2021-01-15 06:54:43 +00:00
|
|
|
|
|
|
|
cd charts-build-scripts
|
|
|
|
./scripts/build
|
|
|
|
mv bin ../bin
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -rf charts-build-scripts
|
|
|
|
chmod +x ./bin/charts-build-scripts
|
|
|
|
./bin/charts-build-scripts --version
|