Skip to content

Commit c8d6f3e

Browse files
committed
chore: Rename default_alpine_version
1 parent fd766fa commit c8d6f3e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

x.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,13 @@
5252
AlpineArch("ppc64le", "ppc64le", "linux/ppc64le", "powerpc64le-unknown-linux-musl"),
5353
]
5454

55+
latest_alpine_version = "3.22"
5556
alpine_versions = [
5657
"3.20",
5758
"3.21",
58-
"3.22",
59+
latest_alpine_version,
5960
]
6061

61-
default_alpine_version = "3.22"
62-
6362
def rustup_hash(arch):
6463
url = f"https://static.rust-lang.org/rustup/archive/{rustup_version}/{arch}/rustup-init.sha256"
6564
with request.urlopen(url) as f:
@@ -160,7 +159,7 @@ def update_mirror_stable_ci():
160159
for version_tag in version_tags():
161160
tags.append(f"{version_tag}-alpine{version}")
162161
tags.append(f"alpine{version}")
163-
if version == default_alpine_version:
162+
if version == latest_alpine_version:
164163
for version_tag in version_tags():
165164
tags.append(f"{version_tag}-alpine")
166165
tags.append("alpine")
@@ -242,7 +241,7 @@ def update_nightly_ci():
242241
platforms = ",".join(platforms)
243242

244243
tags = [f"nightly-alpine{version}"]
245-
if version == default_alpine_version:
244+
if version == latest_alpine_version:
246245
tags.append("nightly-alpine")
247246

248247
versions += f" - name: alpine{version}\n"
@@ -328,7 +327,7 @@ def generate_stackbrew_library():
328327
for version_tag in version_tags():
329328
tags.append(f"{version_tag}-alpine{version}")
330329
tags.append(f"alpine{version}")
331-
if version == default_alpine_version:
330+
if version == latest_alpine_version:
332331
for version_tag in version_tags():
333332
tags.append(f"{version_tag}-alpine")
334333
tags.append("alpine")

0 commit comments

Comments
 (0)