Add dev train and excluded common-test chart.lock (#318)

This commit is contained in:
Kjeld Schouten-Lebbing 2021-04-10 15:05:29 +02:00 committed by GitHub
parent 6342bdc292
commit 64aa712dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 96 additions and 4 deletions

View File

@ -21,6 +21,13 @@ on:
- '!incubator/**/app-readme.md'
- '!incubator/**/app-readme.md.gotmpl'
- '!incubator/**/docs/*'
- 'dev/**'
- '!dev/**/*.md'
- '!dev/**/README.md'
- '!dev/**/README.md.gotmpl'
- '!dev/**/app-readme.md'
- '!dev/**/app-readme.md.gotmpl'
- '!dev/**/docs/*'
- '.github/workflows/apps.test.yaml'
- '.github/ct-install.yaml'
- '.github/ct-lint.yaml'
@ -54,6 +61,7 @@ jobs:
changed:
- 'stable/**'
- 'incubator/**'
- 'dev/**'
- run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json
- id: reduce
run: |
@ -78,8 +86,10 @@ jobs:
run: |
if test -f "./stable/${{ matrix.app }}/item.yaml"; then
train="stable"
else
elif test -f "./incubator/${{ matrix.app }}/item.yaml"; then
train="incubator"
else
train="dev"
fi
echo ::set-output name=train::${train}
maxfolderversion=$(ls -l ${train}/${{ matrix.app }} | grep ^d | awk '{print $9}' | tail -n 1)

View File

@ -42,6 +42,7 @@ jobs:
fi
fi
done
- name: update folder names and dependencies for incubator
run: |
for chart in incubator/*; do
@ -58,6 +59,21 @@ jobs:
fi
done
- name: update folder names and dependencies for incubator
run: |
for chart in dev/*; do
if [ -d "${chart}" ]; then
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
maxchartversion=$(cat ${chart}/${maxfolderversion}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')
chartname=$(basename ${chart})
echo "Processing: ${chart} - folder: ${maxfolderversion} - version: ${maxchartversion}"
helm dependency update ${chart}/${maxfolderversion}
if [ "${maxfolderversion}" != "${maxchartversion}" ]; then
mv -f ${chart}/${maxfolderversion} ${chart}/${maxchartversion}
echo "renamed ${chart}/${maxfolderversion} to ${chart}/${maxchartversion}"
fi
fi
done
- name: Commit and push updated charts
run: |

1
.gitignore vendored
View File

@ -44,3 +44,4 @@ private_values.yaml
temp/
library/common-test/charts/
.cr-release-packages/
library/common-test/chart.lock

View File

@ -22,3 +22,15 @@ for chart in incubator/*; do
fi
done
for chart in dev/*; do
if [ -d "${chart}" ]; then
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
chartname=$(basename ${chart})
echo "Processing: ${chart} - folder: ${maxfolderversion} - version: ${maxchartversion}"
rm -Rf ${chart}/${maxfolderversion}/charts/*.tgz
cp -f library/common-test/charts/* ${chart}/${maxfolderversion}/charts/
fi
done

View File

@ -29,7 +29,7 @@ for chart in stable/*; do
done
for chart in beta/*; do
for chart in dev/*; do
if [ -d "${chart}" ]; then
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
maxchartversion=$(cat ${chart}/${maxfolderversion}/Chart.yaml | grep "^version: " | awk -F" " '{ print $2 }')

View File

@ -67,7 +67,5 @@ for chart in incubator/*; do
--output-file="app-readme.md" \
--template-files="${repository}/.tools/templates/docs/app-readme.md.gotmpl" \
--chart-search-root="${chart}/${maxfolderversion}"
fi
done

View File

@ -0,0 +1,24 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS

View File

@ -0,0 +1,19 @@
apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: placeholder
version: 6.6.6
upstream_version: 6.6.6
appVersion: "placeholder"
description: THIS IS A PLACEHOLDER AND SHOULD NOT BE INSTALLED
type: application
deprecated: false
home: https://github.com/truecharts/apps/tree/master/stable/jackett
icon: https://truecharts.org/_static/img/jackett-icon.png
keywords:
sources:
dependencies:
maintainers:
- name: TrueCharts
email: info@truecharts.org
url: truecharts.org
# annotations:

View File

View File

View File

@ -0,0 +1 @@
# No defaults

View File

@ -0,0 +1,6 @@
groups:
- name: "Container Image"
description: "Image to be used for container"
questions: []

View File

@ -0,0 +1 @@
# No defaults

View File

@ -0,0 +1 @@
# This file is empty on purpose, as it should not be used with TrueNAS SCALE

View File

@ -0,0 +1,3 @@
categories:
- placeholder
icon_url: https://truecharts.org/_static/img/jackett-icon.png