-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathgenerate_cache.sh
More file actions
executable file
·33 lines (28 loc) · 967 Bytes
/
generate_cache.sh
File metadata and controls
executable file
·33 lines (28 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -eo pipefail
shopt -s expand_aliases
tmp=$(mktemp -d)
function clean_before_exit {
# delay before exiting, so stdout/stderr flushes through the logging system
rm -rf $tmp
sleep 3
}
trap clean_before_exit EXIT
cd $tmp
helm repo add cilium https://helm.cilium.io/
helm repo add metallb https://metallb.github.io/metallb
helm repo add traefik https://helm.traefik.io/traefik
helm repo add openebs https://openebs.github.io/charts
helm repo add jetstack https://charts.jetstack.io
helm repo add svc-cat https://kubernetes-sigs.github.io/service-catalog
helm repo update
helm fetch cilium/cilium
helm fetch metallb/metallb
helm fetch traefik/traefik
helm fetch openebs/openebs
helm fetch jetstack/cert-manager
helm fetch svc-cat/catalog
for tar in `ls $tmp | grep .tgz`
do
curl -u $CHARTMUSEUM_USERNAME:$CHARTMUSEUM_PASSWORD -F chart=@$tar "$CHARTMUSEUM_API/api/$([ -z $DRONE_TAG ] && echo testing || echo stable)/charts"
done