Only release library charts

This commit is contained in:
kjeld Schouten-Lebbing 2021-02-27 20:33:15 +01:00
parent 6e63308322
commit 8fe78511a9
No known key found for this signature in database
GPG Key ID: 4CDAD4A532BC1EDB
2 changed files with 2 additions and 52 deletions

View File

@ -3,7 +3,7 @@ name: "Charts: Release"
on:
push:
branches:
- charts
- master
tags-ignore:
- '**'
paths:
@ -63,6 +63,7 @@ jobs:
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.0
with:
charts_dir: library
charts_repo_url: https://charts.truecharts.org/
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

View File

@ -1,51 +0,0 @@
name: "Charts: Restructure"
on:
push:
branches:
- master
tags-ignore:
- '**'
jobs:
copy:
runs-on: ubuntu-latest
steps:
- name: Checkout-Master
uses: actions/checkout@v2
with:
ref: 'master'
path: 'master'
token: ${{ secrets.RENOVPUSH }}
- name: Checkout-Charts
uses: actions/checkout@v2
with:
ref: 'charts'
path: 'charts'
token: ${{ secrets.RENOVPUSH }}
- name: Generate Helm Structure
run: |
cd master
rm -Rf ../charts/charts/*
for chart in charts/*; do
if [ -d "${chart}" ]; then
maxversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
chartname=$(basename ${chart})
echo "Processing ${chart} version ${maxversion}"
mv ${chart}/${maxversion} ../charts/charts/${chartname}
rm ../charts/charts/${chartname}/Chart.lock || echo "chart.lock missing for ${chartname}, continuing..."
fi
done
mv library/* ../charts/charts/
ls ../charts/charts/
cd ..
- name: Commit and push updated charts
run: |
cd charts
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add --all
git commit -sm "Publish Chart updates" || exit 0
git push