Files
HelmChartSammlung/.gitea/workflows/build-chart-keycloak.yml
Marko Oldenburg cbf32d11be
Some checks failed
Build Helm Chart / helm-package (push) Failing after 5s
Add keycloak-testing branch to workflow triggers
This update modifies the GitHub Actions workflow for building the
Keycloak chart. In addition to the existing trigger for the
main branch, a new trigger has been added for the
keycloak-testing branch. This change allows for more flexible
testing and deployment scenarios by enabling the workflow to
run on changes pushed to the keycloak-testing branch.

No breaking changes are introduced with this update, and the
workflow paths remain unchanged, still focusing on the
"charts/keycloak/Chart.yaml" file.
2025-08-31 09:57:53 +02:00

45 lines
1.5 KiB
YAML

name: "Build Helm Chart"
on:
push:
branches:
- main
- keycloak-testing
paths:
- "charts/keycloak/Chart.yaml"
jobs:
helm-package:
runs-on: ubuntu-latest
env:
APP: charts/keycloak
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set Helm Chart App Name and Version
id: get_version
run: |
APP_NAME=$(grep -oP '(?<=^name: ).*' ${{ env.APP }}/Chart.yaml)
echo "Helm Chart App Name: $APP_NAME"
echo "::set-output name=app::$APP_NAME"
CHART_VERSION=$(grep -oP '(?<=^version: ).*' ${{ env.APP }}/Chart.yaml)
echo "Helm Chart version: $CHART_VERSION"
echo "::set-output name=tag::$CHART_VERSION"
- name: Setup Helm
run: |
#curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
curl -kSso /usr/local/bin/helm https://debmirror.cooltux.net/helm-v3.18.4 && chmod +x /usr/local/bin/helm
helm version
- name: Package Helm Chart
run: |
helm dependency update ${{ env.APP }}
helm lint ${{ env.APP }}
helm package ${{ env.APP }}
- name: Upload Helm Package to repo
run: |
curl --user ${{ secrets.USER }}:${{ secrets.TOKEN }} -X POST --upload-file ./${{ steps.get_version.outputs.app }}-${{ steps.get_version.outputs.tag }}.tgz ${{ vars.HELMREGISTRY }}/api/packages/${{ vars.OWNER }}/helm/api/charts