amq-broker-helm/.gitea/workflows/build-chart.yml
Marko Oldenburg fe5de3a2c6
Some checks failed
Build Helm Chart / helm-package (push) Failing after 2s
```
Update Helm charts and CI workflow for artemis-broker

Modified the Helm chart names for primary and backup Artemis brokers to
reflect their specific roles. The main changes include updating the
name fields in the respective Chart.yaml files for
artemis-broker-backup and artemis-broker-primary charts.

In the CI workflow, the trigger paths in build-chart.yml were updated
to include individual paths for both artemis-broker-backup and
artemis-broker-primary instead of a generic artemis-broker path.
This change was necessary to ensure that the CI system correctly
responds to changes in both charts separately. Additionally, a
dependency was added to the primary broker chart for
artemis-broker-backup, underscoring their relationship in HA
configuration for clustered setups.
```
2025-03-18 09:06:58 +01:00

46 lines
1.6 KiB
YAML

name: "Build Helm Chart"
on:
push:
branches:
- main
- dev
paths:
- "artemis-broker-primary/Chart.yaml"
- "artemis-broker-backup/Chart.yaml"
jobs:
helm-package:
runs-on: ubuntu-latest
env:
APP: artemis-broker
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
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
echo "--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"