Skip to content

Commit 8ed0100

Browse files
authored
Update ImageCustomizer to v1.0.0 and add semantic version and latest tag support for imagecustomizer golden container (microsoft#14688)
1 parent a3239db commit 8ed0100

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.pipelines/containerSourceData/scripts/PublishContainers.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,16 +454,29 @@ do
454454
"$azure_linux_version" \
455455
"$ARCHITECTURE_TO_BUILD"
456456

457-
if $IS_HCI_GOLDEN_IMAGE; then
457+
if $IS_HCI_GOLDEN_IMAGE || [[ "$container_type" == "imagecustomizer" ]]; then
458458
# create multi-arch tag with major, minor, and patch version
459459
# e.g. azurelinuxpreview.azurecr.io/base/kubevirt/cdi-controller:1.55.0
460+
# e.g. azurelinuxpreview.azurecr.io/base/imagecustomizer:1.0.0
460461
create_multi_arch_tags \
461462
"$image_name_with_noarch" \
462463
"$container_name" \
463464
"$package_version" \
464465
"$azure_linux_version" \
465466
"$ARCHITECTURE_TO_BUILD"
466467
fi
468+
469+
# Special handling for imagecustomizer: create latest tag
470+
if [[ "$container_type" == "imagecustomizer" ]]; then
471+
# Create 'latest' tag pointing to the current version
472+
echo "Creating 'latest' tag for imagecustomizer"
473+
create_multi_arch_tags \
474+
"$image_name_with_noarch" \
475+
"$container_name" \
476+
"latest" \
477+
"$azure_linux_version" \
478+
"$ARCHITECTURE_TO_BUILD"
479+
fi
467480
fi
468481
done < "$PUBLISHED_CONTAINER_FILE"
469482
done
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Signatures": {
3-
"azurelinux-image-tools-0.19.0.tar.gz": "7465609d2f0e8988b21abaa0ed3192588e7fc6362bd6ec3bacf90c40d036efb4",
4-
"azurelinux-image-tools-0.19.0-vendor.tar.gz": "6fadff7d823a97658704183f028ecc94e9725fe3ffcba1e4eb48c2d291c184da"
3+
"azurelinux-image-tools-1.0.0.tar.gz": "fac3fd48c1e0527109239deb8f4df7a526513409fa7474d1d7ffac978c1521d1",
4+
"azurelinux-image-tools-1.0.0-vendor.tar.gz": "6fadff7d823a97658704183f028ecc94e9725fe3ffcba1e4eb48c2d291c184da"
55
}
66
}

SPECS/azurelinux-image-tools/azurelinux-image-tools.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Summary: Azure Linux Image Tools
44
Name: azurelinux-image-tools
5-
Version: 0.19.0
5+
Version: 1.0.0
66
Release: 1%{?dist}
77
License: MIT
88
URL: https://github.com/microsoft/azure-linux-image-tools/
@@ -99,6 +99,9 @@ go test -C toolkit/tools ./...
9999
%{_libdir}/imagecustomizer/telemetry-requirements.txt
100100

101101
%changelog
102+
* Wed Sep 24 2025 Lanze Liu <[email protected]> 1.0.0-1
103+
- Upgrade to GA version 1.0.0-1
104+
102105
* Wed Sep 3 2025 Lanze Liu <[email protected]> 0.19.0-1
103106
- Upgrade the version.
104107
- Fixed imagecustomizer container files location to comply with RPM packaging guidelines

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,8 @@
915915
"type": "other",
916916
"other": {
917917
"name": "azurelinux-image-tools",
918-
"version": "0.19.0",
919-
"downloadUrl": "https://github.com/microsoft/azure-linux-image-tools/archive/refs/tags/v0.19.0.tar.gz"
918+
"version": "1.0.0",
919+
"downloadUrl": "https://github.com/microsoft/azure-linux-image-tools/archive/refs/tags/v1.0.0.tar.gz"
920920
}
921921
}
922922
},

0 commit comments

Comments
 (0)