remove dh_catalog and move catalog validation to catalog train using staging branch

This commit is contained in:
Kjeld Schouten-Lebbing 2022-09-22 14:41:14 +02:00
parent faa505e041
commit a665a7ca4c
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99
1 changed files with 1 additions and 42 deletions

View File

@ -147,18 +147,9 @@ jobs:
fetch-depth: 1
repository: truecharts/catalog
token: ${{ secrets.BOT_TOKEN }}
ref: staging
path: catalog
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
if: |
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
with:
fetch-depth: 1
repository: truecharts/dh_catalog
token: ${{ secrets.BOT_TOKEN }}
path: dh_catalog
- name: build catalogs
shell: bash
if: |
@ -169,25 +160,6 @@ jobs:
parthreads=$(($(nproc) * 2))
parallel -j ${parthreads} .github/scripts/build-catalog.sh '2>&1' ::: ${CHARTS[@]}
- name: Generate docker-hub Catalog
shell: bash
if: |
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
run: |
rm -rf dh_catalog/*.*
rm -rf dh_catalog/*
cp -rf catalog/* dh_catalog
cd dh_catalog
find ./ -type f -name *.yaml -exec sed -i 's/tccr.io/dh.tccr.io/gI' {} \;
cd -
- name: Validate catalogs
if: |
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
run: |
echo "Starting Catalog Validation"
/usr/local/bin/catalog_validate validate --path "${PWD}/catalog"
- name: Commit Catalog
if: |
steps.collect-changes.outputs.changesDetected == 'true'
@ -201,19 +173,6 @@ jobs:
cd -
rm -rf catalog
- name: Commit DH Catalog
if: |
steps.collect-changes.outputs.changesDetected == 'true'
run: |
cd dh_catalog
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 dh_catalog
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
if: |