mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
feat!: Relocate repository
This commit is contained in:
parent
d3bd21cf8a
commit
ad087dee99
40 changed files with 107 additions and 445 deletions
10
.github/workflows/chart-release-steps.yaml
vendored
10
.github/workflows/chart-release-steps.yaml
vendored
|
@ -82,7 +82,7 @@ jobs:
|
|||
# ----------------------------
|
||||
- name: Get chart details
|
||||
id: chart-details
|
||||
uses: bjw-s-labs/helm-charts-actions/get-chart-details@main
|
||||
uses: bjw-s-labs/helm-charts-actions/get-chart-details@2025.2.0
|
||||
with:
|
||||
path: src/charts/${{ inputs.chart }}
|
||||
validateChartYaml: true
|
||||
|
@ -131,7 +131,7 @@ jobs:
|
|||
# Package Helm chart
|
||||
# ----------------------------
|
||||
- name: Dereference JSON schema before packaging
|
||||
uses: bjw-s-labs/helm-charts-actions/dereference-json-schema@main
|
||||
uses: bjw-s-labs/helm-charts-actions/dereference-json-schema@2025.2.0
|
||||
with:
|
||||
schemaFile: "src/charts/${{ inputs.chart }}/values.schema.json"
|
||||
outputFile: "src/charts/${{ inputs.chart }}/values.schema.json"
|
||||
|
@ -182,7 +182,7 @@ jobs:
|
|||
shell: bash
|
||||
working-directory: gh-pages
|
||||
run: |
|
||||
helm repo index . --url https://bjw-s.github.io/helm-charts/
|
||||
helm repo index . --url https://bjw-s-labs.github.io/helm-charts/
|
||||
|
||||
- name: Commit Changes
|
||||
if: ${{ inputs.publishToGhPages }}
|
||||
|
@ -235,8 +235,8 @@ jobs:
|
|||
PACKAGE_FILE: ${{ steps.package-chart.outputs.result }}
|
||||
CHART_NAME: ${{ steps.chart-details.outputs.name }}
|
||||
CHART_VERSION: ${{ steps.chart-details.outputs.version }}
|
||||
CHART_TAG_BASE: ghcr.io/bjw-s/helm
|
||||
CHART_TAG: ${{ steps.chart-details.outputs.name }}:${{ inputs.steps.chart-details.outputs.version }}
|
||||
CHART_TAG_BASE: ghcr.io/bjw-s-labs/helm
|
||||
CHART_TAG: ${{ steps.chart-details.outputs.name }}:${{ steps.chart-details.outputs.version }}
|
||||
run: |
|
||||
helm push "${PACKAGE_FILE}" oci://${CHART_TAG_BASE} &> push-metadata.txt
|
||||
cat push-metadata.txt
|
||||
|
|
8
.github/workflows/charts-lint.yaml
vendored
8
.github/workflows/charts-lint.yaml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
|||
|
||||
- name: Get chart details for PR
|
||||
id: chart-details-pr
|
||||
uses: bjw-s-labs/helm-charts-actions/get-chart-details@main
|
||||
uses: bjw-s-labs/helm-charts-actions/get-chart-details@2025.2.0
|
||||
with:
|
||||
path: pull/charts/${{ matrix.chart }}
|
||||
validateChartYaml: true
|
||||
|
@ -55,7 +55,7 @@ jobs:
|
|||
|
||||
- name: Get chart details for default branch
|
||||
id: chart-details-default
|
||||
uses: bjw-s-labs/helm-charts-actions/get-chart-details@main
|
||||
uses: bjw-s-labs/helm-charts-actions/get-chart-details@2025.2.0
|
||||
with:
|
||||
path: default/charts/${{ matrix.chart }}
|
||||
allowChartToNotExist: true
|
||||
|
@ -127,8 +127,8 @@ jobs:
|
|||
COMMON_LIBRARY_LOCATION: ${{ github.workspace }}/charts/library/common
|
||||
working-directory: charts/${{ matrix.chart }}
|
||||
run: |
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s.github.io/helm-charts").version = ">0.0.0-0")' Chart.yaml
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s.github.io/helm-charts").repository = "file://${{ env.COMMON_LIBRARY_LOCATION }}")' Chart.yaml
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s-labs.github.io/helm-charts").version = ">0.0.0-0")' Chart.yaml
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s-labs.github.io/helm-charts").repository = "file://${{ env.COMMON_LIBRARY_LOCATION }}")' Chart.yaml
|
||||
echo "::group::Modified Chart.yaml"
|
||||
cat Chart.yaml
|
||||
echo "::endgroup::"
|
||||
|
|
6
.github/workflows/charts-test.yaml
vendored
6
.github/workflows/charts-test.yaml
vendored
|
@ -86,8 +86,8 @@ jobs:
|
|||
COMMON_LIBRARY_LOCATION: ${{ github.workspace }}/charts/library/common
|
||||
working-directory: charts/${{ matrix.chart }}
|
||||
run: |
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s.github.io/helm-charts").version = ">0.0.0-0")' Chart.yaml
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s.github.io/helm-charts").repository = "file://${{ env.COMMON_LIBRARY_LOCATION }}")' Chart.yaml
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s-labs.github.io/helm-charts").version = ">0.0.0-0")' Chart.yaml
|
||||
yq -i '. |= .dependencies |= map(select(.name == "common" and .repository == "https://bjw-s-labs.github.io/helm-charts").repository = "file://${{ env.COMMON_LIBRARY_LOCATION }}")' Chart.yaml
|
||||
echo "::group::Modified Chart.yaml"
|
||||
cat Chart.yaml
|
||||
echo "::endgroup::"
|
||||
|
@ -145,7 +145,7 @@ jobs:
|
|||
helm: "${{ inputs.helmVersion }}"
|
||||
|
||||
- name: Dereference JSON schema
|
||||
uses: bjw-s-labs/helm-charts-actions/dereference-json-schema@main
|
||||
uses: bjw-s-labs/helm-charts-actions/dereference-json-schema@2025.2.0
|
||||
with:
|
||||
schemaFile: "charts/${{ matrix.chart }}/values.schema.json"
|
||||
outputFile: "charts/${{ matrix.chart }}/values.schema.json"
|
||||
|
|
45
.github/workflows/docs-release.yaml
vendored
45
.github/workflows/docs-release.yaml
vendored
|
@ -13,12 +13,13 @@ on:
|
|||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
|
||||
jobs:
|
||||
release-docs:
|
||||
name: Release documentation
|
||||
build-docs:
|
||||
name: Build documentation
|
||||
runs-on: ubuntu-22.04
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
|
@ -26,8 +27,8 @@ jobs:
|
|||
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
|
||||
id: app-token
|
||||
with:
|
||||
app-id: "${{ secrets.BJWS_APP_ID }}"
|
||||
private-key: "${{ secrets.BJWS_APP_PRIVATE_KEY }}"
|
||||
app-id: ${{ secrets.LAB_ASSISTANT_APP_ID }}
|
||||
private-key: ${{ secrets.LAB_ASSISTANT_APP_KEY }}
|
||||
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
@ -52,5 +53,33 @@ jobs:
|
|||
github_token: ${{ steps.app-token.outputs.token }}
|
||||
publish_dir: ./site
|
||||
destination_dir: docs
|
||||
user_name: "bjw-s-bot[bot]"
|
||||
user_email: "bjw-s-bot <87358111+bjw-s-bot[bot]@users.noreply.github.com>"
|
||||
|
||||
publish-docs:
|
||||
name: Publish documentation
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- build-docs
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- name: Checkout main branch
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
path: src
|
||||
|
||||
- name: Checkout gh-pages branch
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: gh-pages
|
||||
path: gh-pages
|
||||
|
||||
- name: Deploy changes to GitHub Pages
|
||||
uses: ./src/.github/actions/publish-folder-to-pages
|
||||
with:
|
||||
path: gh-pages/
|
||||
deleteArtifactAfterPublish: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue