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
View 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"

View File

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

View File

@ -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:

View File

@ -2,6 +2,9 @@ repositories:
- name: cdf
helm:
url: https://cdfoundation.github.io/tekton-helm-chart/
- name: keel
helm:
url: https://charts.keel.sh
- name: istio
helm:
url: https://istio-release.storage.googleapis.com/charts
@ -47,6 +50,9 @@ repositories:
url: https://git.badhouseplants.net/allanger/helm-charts
git_ref: add-shadowsocks
path: charts
- name: kubernetes-dashboard
helm:
url: https://kubernetes.github.io/dashboard/
mirrors:
- name: custom-commands
@ -54,7 +60,7 @@ mirrors:
package:
- helm package -d package .
upload:
- helm push ./package/{{ name }}-{{ version }}.tgz oci://git.badhouseplants.net/softplayer/helm
- helm push ./package/{{ name }}-{{ version }}.tgz oci://registry.badhouseplants.net/softplayer/helm
- rm -rf ./package
charts:
@ -127,7 +133,7 @@ charts:
repository: fluxcd-community
mirrors:
- custom_command
- name: helmrelease
repository: softplayer
mirrors:
@ -137,3 +143,14 @@ charts:
repository: allanger-charts
mirrors:
- custom_command
- name: keel
repository: keel
mirrors:
- custom_command
- name: kubernetes-dashboard
repository: kubernetes-dashboard
mirrors:
- custom_command