diff --git a/.github/cr.yaml b/.github/cr.yaml index af85265603c..94bf975352b 100644 --- a/.github/cr.yaml +++ b/.github/cr.yaml @@ -1,8 +1,10 @@ owner: truecharts -git-repo: apps +git-repo: charts +repo: charts charts-dir: charts/* -charts_repo_url: "https://truecharts.org" +charts_repo_url: "https://charts.truecharts.org" excluded-charts: common-test pages-branch: "master" SkipExisting: true -index-path: "docs/index.yaml" +skipExisting: true +index-path: "chartsrepo/index.yaml" diff --git a/.github/workflows/apps.release.yaml b/.github/workflows/apps.release.yaml index a5176eeb750..be2de53a584 100644 --- a/.github/workflows/apps.release.yaml +++ b/.github/workflows/apps.release.yaml @@ -21,6 +21,13 @@ jobs: fetch-depth: 100 token: ${{ secrets.BOT_TOKEN }} + - name: Checkout + uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3 + with: + repository: truecharts/charts + token: ${{ secrets.BOT_TOKEN }} + path: chartsrepo + - name: Checkout uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3 with: @@ -37,7 +44,7 @@ jobs: - name: build-and-run run: | - tools/build-release.sh -p --config .github/cr.yaml + tools/build-release.sh -p --config .github/cr.yaml SkipExisting: true env: CR_TOKEN: ${{ secrets.BOT_TOKEN }} @@ -52,6 +59,17 @@ jobs: cd - rm -rf catalog + - name: Commit and Push new App releases + run: | + cd chartsrepo + 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 + - name: Commit and Push new Docker-hub-locked App releases run: | cd dh_catalog diff --git a/.gitignore b/.gitignore index a1e5b79d8d2..3469a17dd2b 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,4 @@ charts/**/charts/*.tgz charts/**/render/* catalog/ dh_catalog/ +chartsrepo/