switch to zot

This commit is contained in:
2024-05-08 17:38:52 +02:00
parent cb2ce491a1
commit 8c09f38193
30 changed files with 479 additions and 39 deletions

24
helmule/bitnami/build_charts.sh Executable file

@ -0,0 +1,24 @@
#! /usr/bin/env bash
export REPO_NAME=bitnami
export REPO_URL=https://charts.bitnami.com/bitnami
WORKDIR=$(mktemp -d)
envsubst < ./helmule.yaml > "${WORKDIR}/helmule.yaml"
cat "${WORKDIR}/helmule.yaml"
helm repo add $REPO_NAME $REPO_URL
helm repo update
for chart in $(helm search repo bitnami -o yaml | yq '.[].name' | sed -e 's/.*\///'); do
export CHART_NAME=$chart
envsubst < ./charts.yaml.tpl > "$WORKDIR/$chart.yaml"
cat <<EOF >> $WORKDIR/helmule.yaml
- kind: Charts
path: "./$chart.yaml"
EOF
done
cat "${WORKDIR}/helmule.yaml"
helmule --config "${WORKDIR}/helmule.yaml"

@ -0,0 +1,4 @@
name: $CHART_NAME
repository: $REPO_NAME
mirrors:
- zot

@ -0,0 +1,15 @@
mirrors:
- name: zot
custom_command:
package:
- helm package -d package .
upload:
- helm push ./package/{{ name }}-{{ version }}.tgz oci://registry.badhouseplants.net/softplayer/bitnami
repositories:
- name: $REPO_NAME
helm:
url: $REPO_URL
include: