different push tactic

This commit is contained in:
kjeld Schouten-Lebbing
2022-03-30 00:26:25 +02:00
parent 8354ca8fca
commit 82677bdd31
3 changed files with 22 additions and 2 deletions
+7
View File
@@ -20,6 +20,13 @@ jobs:
with: with:
fetch-depth: 100 fetch-depth: 100
token: ${{ secrets.BOT_TOKEN }} token: ${{ secrets.BOT_TOKEN }}
- uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
name: Checkout
with:
fetch-depth: 1
ref: gh-pages
token: ${{ secrets.BOT_TOKEN }}
path: .cr-index
- name: Checkout - name: Checkout
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3 uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
+1 -1
View File
@@ -23,7 +23,7 @@ sources:
- https://github.com/bitnami/bitnami-docker-mongodb - https://github.com/bitnami/bitnami-docker-mongodb
- https://www.mongodb.com - https://www.mongodb.com
type: application type: application
version: 0.0.7 version: 0.0.8
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- database - database
+14 -1
View File
@@ -64,6 +64,7 @@ main() {
gen_dh_cat gen_dh_cat
release_charts release_charts
update_index update_index
upload_index
fi fi
validate_catalog validate_catalog
upload_catalog upload_catalog
@@ -728,7 +729,7 @@ release_charts() {
export -f release_charts export -f release_charts
update_index() { update_index() {
local args=(-o "$owner" -r "$repo" -c "$charts_repo_url --push") local args=(-o "$owner" -r "$repo" -c "$charts_repo_url"
if [[ -n "$config" ]]; then if [[ -n "$config" ]]; then
args+=(--config "$config") args+=(--config "$config")
fi fi
@@ -740,4 +741,16 @@ update_index() {
} }
export -f update_index export -f update_index
upload_index() {
cd .cr-index
git config user.name "TrueCharts-Bot"
git config user.email "bot@truecharts.org"
git add --all
git commit -sm "Commit released Helm Chart and docs for TrueCharts" || exit 0
git push
cd -
rm .cr-index
}
export -f upload_index
main "$@" main "$@"