build: build in reverse order of versions (#506)

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt 2024-10-21 16:00:49 +02:00 committed by GitHub
parent c269289a96
commit 2ba59b4f95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,7 +92,7 @@ def main(push_tags=False, multiarch=False):
if push_tags:
login()
for version, buildinfo in builddata.items():
for version, buildinfo in sorted(builddata.items(), key=lambda item: item[0], reverse=True):
sha256 = buildinfo["sha256"]
tags = buildinfo["tags"]
build_and_push(sha256, version, tags, push_tags, multiarch)