Change health check and prom internal metrics ports to a unique value… #342
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Charts | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
maybe_update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check if the release is needed | |
id: check_update_chart | |
run: | | |
LATEST_VERSION=$(curl -s https://signalfx.github.io/splunk-otel-collector-chart/index.yaml | yq e '.entries["splunk-otel-collector"][0].version') | |
CURRENT_VERSION=$(yq e '.version' helm-charts/splunk-otel-collector/Chart.yaml) | |
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then | |
echo "New release needed, creating..." | |
echo "NEED_RELEASE=1" >> $GITHUB_OUTPUT | |
else | |
echo "No new release needed" | |
echo "NEED_RELEASE=0" >> $GITHUB_OUTPUT | |
fi | |
exit 0 | |
- name: Configure Git | |
run: git config user.name "$GITHUB_ACTOR" && git config user.email "[email protected]" | |
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }} | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: v3.18.0 | |
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }} | |
- name: Set up chart dependencies | |
run: make render | |
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }} | |
- name: Generate Release Notes | |
run: make chlog-release-notes OUTPUT=file | |
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }} | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
with: | |
charts_dir: helm-charts | |
config: .github/workflows/configs/cr.yaml | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: ${{ steps.check_update_chart.outputs.NEED_RELEASE == 1 }} |