16 lines
417 B
Bash
Executable File
16 lines
417 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
echo "-- chart/index --"
|
|
|
|
cd $(dirname $0)/../..
|
|
mkdir -p build
|
|
|
|
repo_index=${1}
|
|
|
|
echo "Getting current index from ${repo_index}"
|
|
curl -f -H 'Cache-Control: max-age=0,no-cache' -H 'Host: releases.rancher.com' "https://c.storage.googleapis.com/server-charts/${repo_index}/index.yaml?$(date +%s%N)" -o build/index.yaml
|
|
|
|
helm_v3 repo index --merge build/index.yaml ./bin/chart/${repo_index}
|