rancher-charts/scripts/pull-scripts

23 lines
472 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
cd $(dirname $0)
2021-02-08 21:33:55 +00:00
source ./version
2021-05-17 21:16:05 +00:00
echo "Pulling in charts-build-scripts version ${CHARTS_BUILD_SCRIPTS_REPO}@${CHARTS_BUILD_SCRIPT_VERSION}"
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
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