Refactor the Update values.yaml step to use exact version matching instead of regex patterns. This approach is simpler, more reliable, and mirrors the successful implementation in other Helmcharts (e.g., php-fpm). Changes: - Extract full current versions using awk (easier to parse) - Use exact string replacement: sed 's|old_exact_version|new_exact_version|g' - Only update if version has actually changed (conditional sed) - Better error handling with set -e - Clearer logging of what changed Benefits: 1. Simpler logic: exact match instead of regex patterns 2. More reliable: no regex pattern matching failures 3. Proven approach: matches successful implementation in other projects 4. Clearer intent: code reads like "if version changed, update it" 5. Better debugging: conditional echo statements show exactly what happened Flow: 1. Get current full version from values.yaml (e.g., 6.9.0-php8.5-fpm-alpine) 2. Get latest version from Docker Hub (shared variable) 3. If different, replace exact old version with exact new version 4. Report what changed (or didn't change) 5. Determine if WordPress version changed for Chart.yaml update decision Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
16 KiB
16 KiB