|
10 | 10 | from zero_cache_chart.git import Git |
11 | 11 | from zero_cache_chart.oci import push_if_not_exists, prune_untagged, delete_all_versions |
12 | 12 | from zero_cache_chart.types import VersionManagementResult |
13 | | -from zero_cache_chart.versions import ( |
14 | | - get_latest_stable, |
15 | | - classify_version_tag, |
16 | | -) |
| 13 | +from zero_cache_chart.versions import get_latest_stable |
17 | 14 |
|
18 | 15 |
|
19 | 16 | def _split_oci_repo(oci_repo: str) -> tuple[str, str]: |
@@ -82,8 +79,6 @@ def update( |
82 | 79 |
|
83 | 80 | if dry_run: |
84 | 81 | click.echo(f"\n[DRY RUN] Would update: {current_version} -> {latest}") |
85 | | - tag_name, kind = classify_version_tag(latest) |
86 | | - click.echo(f" Create tag: {tag_name} ({kind})") |
87 | 82 | click.echo(f" Push to OCI: {oci_registry}/{oci_repo}") |
88 | 83 | return |
89 | 84 |
|
@@ -118,13 +113,13 @@ def update( |
118 | 113 | git.push("main") |
119 | 114 | result.main_updated = True |
120 | 115 |
|
121 | | - # 7. Create release tag |
122 | | - tag_name, kind = classify_version_tag(latest) |
| 116 | + # 7. Create release tag (based on chart version, not appVersion) |
| 117 | + tag_name = f"v{oci_version}" |
123 | 118 | if not git.tag_exists(tag_name): |
124 | 119 | git.create_tag(tag_name) |
125 | 120 | git.push_tag(tag_name) |
126 | 121 | result.created_tags.append(tag_name) |
127 | | - click.echo(f"Created tag {tag_name} ({kind})") |
| 122 | + click.echo(f"Created tag {tag_name}") |
128 | 123 |
|
129 | 124 | # Summary |
130 | 125 | click.echo("\n=== Summary ===") |
|
0 commit comments