mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
feat(app-template): Release version 3.7.1
This commit is contained in:
parent
433f6d132b
commit
b93c4199f7
10 changed files with 77 additions and 34 deletions
|
@ -33,27 +33,27 @@ runs:
|
||||||
pattern: ${{ inputs.artifactPrefix }}${{ inputs.artifactPattern }}
|
pattern: ${{ inputs.artifactPrefix }}${{ inputs.artifactPattern }}
|
||||||
|
|
||||||
- name: Copy artifacts to gh-pages structure
|
- name: Copy artifacts to gh-pages structure
|
||||||
shell: bash
|
uses: actions/github-script@v7
|
||||||
working-directory: artifacts
|
with:
|
||||||
env:
|
script: |
|
||||||
ARTIFACT_PREFIX: ${{ inputs.artifactPrefix }}
|
const dstFolder = "${{ inputs.targetFolder }}";
|
||||||
TARGET_FOLDER: ${{ inputs.targetFolder }}
|
const artifactPrefix = "${{ inputs.artifactPrefix }}";
|
||||||
run: |
|
|
||||||
while IFS= read -d $'\0' -r ARTIFACT ; do
|
|
||||||
echo ${ARTIFACT}
|
|
||||||
prefix_removed_chart=${ARTIFACT/#$ARTIFACT_PREFIX}
|
|
||||||
DELIMITER='__'
|
|
||||||
s=${prefix_removed_chart}${DELIMITER}
|
|
||||||
ARTIFACT_PATH_PARTS=();
|
|
||||||
while [[ $s ]]; do
|
|
||||||
ARTIFACT_PATH_PARTS+=( "${s%%"${DELIMITER}"*}" );
|
|
||||||
s=${s#*"${DELIMITER}"};
|
|
||||||
done;
|
|
||||||
|
|
||||||
CHART_FOLDER=${ARTIFACT_PATH_PARTS[0]}
|
baseDir = process.cwd();
|
||||||
mkdir -p "${TARGET_FOLDER}/${CHART_FOLDER}"
|
artifactsDir = `${baseDir}/artifacts`;
|
||||||
cp ${ARTIFACT}/* ${TARGET_FOLDER}/${CHART_FOLDER}/
|
|
||||||
done < <(find . -mindepth 1 -maxdepth 1 -type d -print0)
|
const globber = await glob.create(`${artifactsDir}/${artifactPrefix}*/*.tgz`);
|
||||||
|
for await (const file of globber.globGenerator()) {
|
||||||
|
relativePath = file.startsWith(artifactsDir) ? file.slice(artifactsDir.length) : file;
|
||||||
|
artifactFolder = relativePath.split('/')[1];
|
||||||
|
artifactFolderStrippedPrefix = artifactFolder.startsWith(artifactPrefix) ? artifactFolder.slice(artifactPrefix.length) : artifactFolder;
|
||||||
|
chartType = artifactFolderStrippedPrefix.split('__')[0];
|
||||||
|
targetFolder = `${baseDir}/${dstFolder}/${chartType}`;
|
||||||
|
|
||||||
|
console.log(`Copying ${file} to ${targetFolder}/`);
|
||||||
|
await io.mkdirP(targetFolder);
|
||||||
|
await io.cp(file, `${targetFolder}/`);
|
||||||
|
}
|
||||||
|
|
||||||
- name: Update chart index
|
- name: Update chart index
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -67,4 +67,3 @@ runs:
|
||||||
repository: ${{ inputs.targetFolder }}
|
repository: ${{ inputs.targetFolder }}
|
||||||
branch: ${{ inputs.targetBranch }}
|
branch: ${{ inputs.targetBranch }}
|
||||||
file_pattern: "index.yaml **/*.tgz"
|
file_pattern: "index.yaml **/*.tgz"
|
||||||
disable_globbing: true
|
|
||||||
|
|
30
.github/workflows/charts-release-steps.yaml
vendored
30
.github/workflows/charts-release-steps.yaml
vendored
|
@ -73,6 +73,36 @@ jobs:
|
||||||
artifactPrefix: chart__
|
artifactPrefix: chart__
|
||||||
helmVersion: ${{ inputs.helmVersion }}
|
helmVersion: ${{ inputs.helmVersion }}
|
||||||
|
|
||||||
|
tag-charts:
|
||||||
|
name: Tag charts
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
needs:
|
||||||
|
- package-charts
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
charts: ${{ fromJSON(inputs.charts) }}
|
||||||
|
fail-fast: false
|
||||||
|
steps:
|
||||||
|
- name: Checkout source branch
|
||||||
|
if: ${{ !contains(fromJSON(inputs.excludedChartsRelease), matrix.charts) }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Grab chart details
|
||||||
|
id: chart-details
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
ROOT_DIR: charts
|
||||||
|
CHART_DIR: "${{ matrix.charts }}"
|
||||||
|
run: |
|
||||||
|
PARENT_DIR=$(basename $(dirname "${ROOT_DIR}/${CHART_DIR}"))
|
||||||
|
echo "name=$(yq '.name' ${ROOT_DIR}/${CHART_DIR}/Chart.yaml)" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "version=$(yq '.version' ${ROOT_DIR}/${CHART_DIR}/Chart.yaml)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Create tag
|
||||||
|
uses: EndBug/latest-tag@latest
|
||||||
|
with:
|
||||||
|
ref: ${{ steps.chart-details.outputs.name }}-${{ steps.chart-details.outputs.version }}
|
||||||
|
|
||||||
release-charts-to-github-pages:
|
release-charts-to-github-pages:
|
||||||
name: Release charts to GitHub Pages
|
name: Release charts to GitHub Pages
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
10
.github/workflows/charts-release.yaml
vendored
10
.github/workflows/charts-release.yaml
vendored
|
@ -8,7 +8,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- rework-publishing-ci # TODO: Remove this
|
|
||||||
paths:
|
paths:
|
||||||
- "charts/**"
|
- "charts/**"
|
||||||
|
|
||||||
|
@ -76,7 +75,14 @@ jobs:
|
||||||
needs:
|
needs:
|
||||||
- prepare
|
- prepare
|
||||||
- release-library-charts
|
- release-library-charts
|
||||||
if: ${{ needs.prepare.outputs.applicationChartsToRelease != '[]' }}
|
if: >-
|
||||||
|
${{
|
||||||
|
always() &&
|
||||||
|
needs.prepare.outputs.applicationChartsToRelease != '[]' &&
|
||||||
|
(
|
||||||
|
contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
|
||||||
|
)
|
||||||
|
}}
|
||||||
uses: ./.github/workflows/charts-release-steps.yaml
|
uses: ./.github/workflows/charts-release-steps.yaml
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
pages: write
|
||||||
|
|
|
@ -29,5 +29,5 @@ OWNERS
|
||||||
schemas/
|
schemas/
|
||||||
|
|
||||||
# Test files
|
# Test files
|
||||||
test/
|
test-chart/
|
||||||
unittests/
|
unittests/
|
||||||
|
|
|
@ -26,5 +26,9 @@ OWNERS
|
||||||
# helm-docs templates
|
# helm-docs templates
|
||||||
*.gotmpl
|
*.gotmpl
|
||||||
|
|
||||||
# helm unit tests
|
# Schema files
|
||||||
tests/
|
schemas/
|
||||||
|
|
||||||
|
# Test files
|
||||||
|
test-chart/
|
||||||
|
unittests/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
description: A common powered chart template. This can be useful for small projects that don't have their own chart.
|
description: A common powered chart template. This can be useful for small projects that don't have their own chart.
|
||||||
name: app-template
|
name: app-template
|
||||||
version: 3.7.0
|
version: 3.7.1
|
||||||
kubeVersion: ">=1.22.0-0"
|
kubeVersion: ">=1.22.0-0"
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: bjw-s
|
- name: bjw-s
|
||||||
|
@ -10,12 +10,16 @@ maintainers:
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://bjw-s.github.io/helm-charts
|
repository: https://bjw-s.github.io/helm-charts
|
||||||
version: 3.7.0
|
version: 3.7.1
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |-
|
artifacthub.io/changes: |-
|
||||||
|
- kind: fixed
|
||||||
|
description: |-
|
||||||
|
Values schema is now dereferenced before packaging so it no longer relies on
|
||||||
|
internet connectivity to validate the schema.
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: |
|
description: |
|
||||||
Updated library version to 3.7.0.
|
Updated library version to 3.7.1.
|
||||||
links:
|
links:
|
||||||
- name: Upgrade instructions from v2.x
|
- name: Upgrade instructions from v2.x
|
||||||
url: https://bjw-s.github.io/helm-charts/docs/app-template/#from-2xx-to-30x
|
url: https://bjw-s.github.io/helm-charts/docs/app-template/#from-2xx-to-30x
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# app-template
|
# app-template
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
A common powered chart template. This can be useful for small projects that don't have their own chart.
|
A common powered chart template. This can be useful for small projects that don't have their own chart.
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Kubernetes: `>=1.22.0-0`
|
||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://bjw-s.github.io/helm-charts | common | 3.7.0 |
|
| https://bjw-s.github.io/helm-charts | common | 3.7.1 |
|
||||||
|
|
||||||
## Installing the Chart
|
## Installing the Chart
|
||||||
|
|
||||||
|
|
|
@ -726,7 +726,7 @@
|
||||||
"values": {
|
"values": {
|
||||||
"description": "Values holds the values for this Helm release.",
|
"description": "Values holds the values for this Helm release.",
|
||||||
"x-kubernetes-preserve-unknown-fields": true,
|
"x-kubernetes-preserve-unknown-fields": true,
|
||||||
"$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.7.0/charts/library/common/values.schema.json"
|
"$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.7.1/charts/library/common/values.schema.json"
|
||||||
},
|
},
|
||||||
"valuesFrom": {
|
"valuesFrom": {
|
||||||
"description": "ValuesFrom holds references to resources containing Helm values for this HelmRelease,\nand information about how they should be merged.",
|
"description": "ValuesFrom holds references to resources containing Helm values for this HelmRelease,\nand information about how they should be merged.",
|
||||||
|
|
|
@ -727,7 +727,7 @@
|
||||||
"values": {
|
"values": {
|
||||||
"description": "Values holds the values for this Helm release.",
|
"description": "Values holds the values for this Helm release.",
|
||||||
"x-kubernetes-preserve-unknown-fields": true,
|
"x-kubernetes-preserve-unknown-fields": true,
|
||||||
"$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.7.0/charts/library/common/values.schema.json"
|
"$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.7.1/charts/library/common/values.schema.json"
|
||||||
},
|
},
|
||||||
"valuesFrom": {
|
"valuesFrom": {
|
||||||
"description": "ValuesFrom holds references to resources containing Helm values for this HelmRelease, and information about how they should be merged.",
|
"description": "ValuesFrom holds references to resources containing Helm values for this HelmRelease, and information about how they should be merged.",
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.7.0/charts/library/common/values.schema.json"
|
"$ref": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.7.1/charts/library/common/values.schema.json"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue