Skip to content

Commit 046d243

Browse files
committed
fix(cli): tag releases with chart version instead of appVersion
Tags now use the independent chart version (v1.0.x) rather than the upstream zero-cache appVersion. Also deleted all legacy appVersion tags.
1 parent 73b71c2 commit 046d243

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

src/zero_cache_chart/cli.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010
from zero_cache_chart.git import Git
1111
from zero_cache_chart.oci import push_if_not_exists, prune_untagged, delete_all_versions
1212
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
1714

1815

1916
def _split_oci_repo(oci_repo: str) -> tuple[str, str]:
@@ -82,8 +79,6 @@ def update(
8279

8380
if dry_run:
8481
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})")
8782
click.echo(f" Push to OCI: {oci_registry}/{oci_repo}")
8883
return
8984

@@ -118,13 +113,13 @@ def update(
118113
git.push("main")
119114
result.main_updated = True
120115

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}"
123118
if not git.tag_exists(tag_name):
124119
git.create_tag(tag_name)
125120
git.push_tag(tag_name)
126121
result.created_tags.append(tag_name)
127-
click.echo(f"Created tag {tag_name} ({kind})")
122+
click.echo(f"Created tag {tag_name}")
128123

129124
# Summary
130125
click.echo("\n=== Summary ===")

0 commit comments

Comments
 (0)