22# Script to check for new Jaeger Docker Hub releases and update Chart.yaml
33# Can be run standalone for testing or via the GitHub Actions workflow
44#
5+ # This script updates:
6+ # - appVersion field in Chart.yaml
7+ # - artifacthub.io/images annotation to keep it in sync with appVersion
8+ # - Chart version (via bump-chart-version.sh)
9+ #
510# Usage: ./update-jaeger-version.sh [--dry-run]
611#
712# Environment variables:
@@ -94,6 +99,11 @@ if [[ "$DRY_RUN" == "true" ]]; then
9499 echo " =============================================="
95100 echo " DRY RUN MODE - No changes will be made"
96101 echo " =============================================="
102+ echo " Changes that would be made:"
103+ echo " - appVersion: ${CURRENT_APP_VERSION} -> ${LATEST_TAG} "
104+ echo " - artifacthub.io/images annotation: jaegertracing/jaeger:${CURRENT_APP_VERSION} -> jaegertracing/jaeger:${LATEST_TAG} "
105+ echo " - Chart version will be bumped (minor)"
106+ echo " =============================================="
97107 exit 0
98108fi
99109
@@ -103,6 +113,11 @@ echo "Updating ${CHART_PATH}..."
103113# Update appVersion
104114sed -i " s/^appVersion:.*/appVersion: ${LATEST_TAG} /" " $CHART_PATH "
105115
116+ # Update the artifacthub.io/images annotation to use the new version
117+ # This ensures the annotation stays in sync with appVersion and provides
118+ # accurate metadata to Artifact Hub about the Docker image version
119+ sed -i " s|image: jaegertracing/jaeger:.*|image: jaegertracing/jaeger:${LATEST_TAG} |" " $CHART_PATH "
120+
106121# Get the script directory (where this script is located)
107122SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
108123
0 commit comments