Update release.

This commit is contained in:
2025-12-17 22:32:54 +00:00
parent 836be577eb
commit 005df83478
+10 -40
View File
@@ -28,7 +28,7 @@ jobs:
needs: release needs: release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout operator repo - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -40,43 +40,13 @@ jobs:
VERSION=${VERSION#v} VERSION=${VERSION#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Setup Helm - name: Trigger helm-charts release
uses: azure/setup-helm@v4 env:
with: GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
version: v3.14.0
- name: Checkout helm-charts repo
uses: actions/checkout@v4
with:
repository: lukaszraczylo/helm-charts
ref: gh-pages
path: helm-charts
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
- name: Update and package Helm chart
run: | run: |
VERSION="${{ steps.version.outputs.version }}" gh api repos/lukaszraczylo/helm-charts/dispatches \
-f event_type=release-chart \
# Update chart version -f client_payload[chart_name]=jobs-manager \
sed -i "s/^version:.*/version: $VERSION/" charts/jobs-manager-operator/Chart.yaml -f client_payload[version]=${{ steps.version.outputs.version }} \
sed -i "s/^appVersion:.*/appVersion: \"$VERSION\"/" charts/jobs-manager-operator/Chart.yaml -f client_payload[source_repo]=lukaszraczylo/jobs-manager-operator \
sed -i "s/tag:.*/tag: \"$VERSION\"/" charts/jobs-manager-operator/values.yaml -f client_payload[chart_path]=charts/jobs-manager-operator
# Copy updated chart to helm-charts repo
cp -R charts/jobs-manager-operator/* helm-charts/charts/jobs-manager-operator/
# Package chart
helm package charts/jobs-manager-operator -d helm-charts/charts/packages/
# Update index
cd helm-charts
helm repo index . --url https://lukaszraczylo.github.io/helm-charts/ --merge index.yaml
- name: Commit and push to helm-charts
run: |
cd helm-charts
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git diff --staged --quiet || git commit -m "Release jobs-manager ${{ steps.version.outputs.version }}"
git push