move index.yaml to this repo (prepare to move website away)

This commit is contained in:
kjeld Schouten-Lebbing 2022-03-29 23:31:51 +02:00
parent 96fca1e641
commit d4d94808b2
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
4 changed files with 3 additions and 26 deletions

3
.github/cr.yaml vendored
View File

@ -4,7 +4,6 @@ repo: apps
charts-dir: charts/*
charts_repo_url: "https://charts.truecharts.org"
excluded-charts: common-test
pages-branch: "master"
pages-branch: "gh-pages"
SkipExisting: true
skipExisting: true
index-path: "chartsrepo/index.yaml"

View File

@ -21,14 +21,6 @@ jobs:
fetch-depth: 100
token: ${{ secrets.BOT_TOKEN }}
- name: Checkout
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
with:
fetch-depth: 1
repository: truecharts/charts
token: ${{ secrets.BOT_TOKEN }}
path: chartsrepo
- name: Checkout
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
with:

View File

@ -118,8 +118,8 @@ jobs:
- name: update helm repo cache
run: |
helm repo add truecharts-old https://truecharts.org"
helm repo add truecharts https://charts.truecharts.org"
helm repo add truecharts-old https://truecharts.org
helm repo add truecharts https://charts.truecharts.org
helm repo add truecharts-library https://library-charts.truecharts.org
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add metallb https://metallb.github.io/metallb

View File

@ -67,7 +67,6 @@ main() {
gen_dh_cat
release_charts
update_index
upload_index
fi
validate_catalog
upload_catalog
@ -744,17 +743,4 @@ update_index() {
}
export -f update_index
upload_index() {
cd chartsrepo
echo "uploading index.yaml..."
git config user.name "TrueCharts-Bot"
git config user.email "bot@truecharts.org"
git add --all
git commit -sm "Commit new Chart releases for TrueCharts" || exit 0
git push
cd -
rm -rf chartsrepo
}
export -f upload_index
main "$@"