Skip to content

Commit

Permalink
Prometheus Chart: Replace 'CHART_VERSION' with 'RELEASE_VERSION' (#402)
Browse files Browse the repository at this point in the history
For the Prometheus Chart release, use the correct variable name.

Related to https://linear.app/prefect/issue/PLA-400/cycle-4-catch-all
  • Loading branch information
mitchnielsen authored Oct 17, 2024
1 parent 7708a3c commit 0393728
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/prometheus-exporter-helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
set -x
echo "RELEASE_VERSION=$(date +'%Y.%-m.%-d%H%M%S')" >> $GITHUB_ENV
echo "PROMETHEUS_PREFECT_EXPORTER_VERSION=$(\
git ls-remote --tags --refs --sort="v:refname" \
https://github.com/PrefectHQ/prometheus-prefect-exporter | tail -n1 | sed 's/.*\///' \
Expand Down Expand Up @@ -77,7 +78,7 @@ jobs:
helm package prometheus-prefect-exporter \
--destination /tmp/chart \
--dependency-update \
--version $CHART_VERSION \
--version $RELEASE_VERSION \
--app-version $PROMETHEUS_PREFECT_EXPORTER_VERSION \
--sign --key 'jamie@prefect.io' \
--keyring $SIGN_KEYRING \
Expand All @@ -93,9 +94,9 @@ jobs:
run: |
cp /tmp/chart/artifacthub-repo.yml .
cp /tmp/chart/index.yaml .
cp /tmp/chart/prometheus-prefect-exporter-$CHART_VERSION.* ./charts
git add ./artifacthub-repo.yml ./index.yaml ./charts/prometheus-prefect-exporter-$CHART_VERSION.*
git commit -m "Release $CHART_VERSION"
cp /tmp/chart/prometheus-prefect-exporter-$RELEASE_VERSION.* ./charts
git add ./artifacthub-repo.yml ./index.yaml ./charts/prometheus-prefect-exporter-$RELEASE_VERSION.*
git commit -m "Release $RELEASE_VERSION"
git push origin gh-pages
- name: Create Github Release + Tag
Expand Down

0 comments on commit 0393728

Please sign in to comment.