Only release library charts
This commit is contained in:
@@ -3,7 +3,7 @@ name: "Charts: Release"
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- charts
|
- master
|
||||||
tags-ignore:
|
tags-ignore:
|
||||||
- '**'
|
- '**'
|
||||||
paths:
|
paths:
|
||||||
@@ -63,6 +63,7 @@ jobs:
|
|||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@v1.2.0
|
uses: helm/chart-releaser-action@v1.2.0
|
||||||
with:
|
with:
|
||||||
|
charts_dir: library
|
||||||
charts_repo_url: https://charts.truecharts.org/
|
charts_repo_url: https://charts.truecharts.org/
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user