workflowfix4
This commit is contained in:
@@ -67,7 +67,7 @@ jobs:
|
|||||||
|
|
||||||
- name: (re)generate docs
|
- name: (re)generate docs
|
||||||
run: |
|
run: |
|
||||||
root=$(git rev-parse --show-top-level)
|
ROOT=$(git rev-parse --show-top-level)
|
||||||
for train in stable incubator develop non-free deprecated; do
|
for train in stable incubator develop non-free deprecated; do
|
||||||
for chart in charts/${train}/*; do
|
for chart in charts/${train}/*; do
|
||||||
if [ -d "${chart}" ]; then
|
if [ -d "${chart}" ]; then
|
||||||
@@ -77,12 +77,12 @@ jobs:
|
|||||||
helm-docs \
|
helm-docs \
|
||||||
--ignore-file=".helmdocsignore" \
|
--ignore-file=".helmdocsignore" \
|
||||||
--output-file="README.md" \
|
--output-file="README.md" \
|
||||||
--template-files="$(root)/tools/templates/docs/README.md.gotmpl" \
|
--template-files="${ROOT}/tools/templates/docs/README.md.gotmpl" \
|
||||||
--chart-search-root="${chart}"
|
--chart-search-root="${chart}"
|
||||||
helm-docs \
|
helm-docs \
|
||||||
--ignore-file=".helmdocsignore" \
|
--ignore-file=".helmdocsignore" \
|
||||||
--output-file="CONFIG.md" \
|
--output-file="CONFIG.md" \
|
||||||
--template-files="$(root)/tools/templates/docs/CONFIG.md.gotmpl" \
|
--template-files="${ROOT}/tools/templates/docs/CONFIG.md.gotmpl" \
|
||||||
--chart-search-root="${chart}"
|
--chart-search-root="${chart}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -132,6 +132,29 @@ jobs:
|
|||||||
pybump bump --file ./charts/${train}/${chart}/Chart.yaml --level patch
|
pybump bump --file ./charts/${train}/${chart}/Chart.yaml --level patch
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: update versions in docs
|
||||||
|
run: |
|
||||||
|
ROOT=$(git rev-parse --show-top-level)
|
||||||
|
for train in stable incubator develop non-free deprecated; do
|
||||||
|
for chart in charts/${train}/*; do
|
||||||
|
if [ -d "${chart}" ]; then
|
||||||
|
maxchartversion=$(cat ${chart}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
|
||||||
|
chartname=$(basename ${chart})
|
||||||
|
echo "Copying templates to ${chart}"
|
||||||
|
helm-docs \
|
||||||
|
--ignore-file=".helmdocsignore" \
|
||||||
|
--output-file="README.md" \
|
||||||
|
--template-files="${ROOT}/tools/templates/docs/README.md.gotmpl" \
|
||||||
|
--chart-search-root="${chart}"
|
||||||
|
helm-docs \
|
||||||
|
--ignore-file=".helmdocsignore" \
|
||||||
|
--output-file="CONFIG.md" \
|
||||||
|
--template-files="${ROOT}/tools/templates/docs/CONFIG.md.gotmpl" \
|
||||||
|
--chart-search-root="${chart}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
- name: Copy general readme to website
|
- name: Copy general readme to website
|
||||||
run: |
|
run: |
|
||||||
yes | cp -rf index.yaml docs/index.yaml || echo "chart-index copy failed, continuing..."
|
yes | cp -rf index.yaml docs/index.yaml || echo "chart-index copy failed, continuing..."
|
||||||
|
|||||||
Reference in New Issue
Block a user