@@ -1524,18 +1524,18 @@ build-push-windows-fips-image:
15241524 paths :
15251525 - tags_to_sign_${WIN_VERSION}-fips
15261526
1527- # sign-windows-image:
1528- # extends: .sign-docker
1529- # stage: release
1530- # parallel:
1531- # matrix:
1532- # - WIN_VERSION: ["2019", "2022"]
1533- # FIPS: ["-fips", ""]
1534- # needs:
1535- # - build-push-windows-image
1536- # - build-push-windows-fips-image
1537- # before_script:
1538- # - mv tags_to_sign_${WIN_VERSION}${FIPS} tags_to_sign
1527+ sign-windows-image :
1528+ extends : .sign-docker
1529+ stage : release
1530+ parallel :
1531+ matrix :
1532+ - WIN_VERSION : ["2019", "2022"]
1533+ FIPS : ["-fips", ""]
1534+ needs :
1535+ - build-push-windows-image
1536+ - build-push-windows-fips-image
1537+ before_script :
1538+ - mv tags_to_sign_${WIN_VERSION}${FIPS} tags_to_sign
15391539
15401540release-debs :
15411541 extends :
@@ -1730,11 +1730,11 @@ push-multiarch-manifest:
17301730 stage : docker-manifest-release
17311731 parallel :
17321732 matrix :
1733- - MANIFEST : [multiarch] # , windows_multiarch]
1733+ - MANIFEST : [multiarch, windows_multiarch]
17341734 FIPS : ["-fips",""]
17351735 needs :
17361736 - sign-linux-image
1737- # - sign-windows-image
1737+ - sign-windows-image
17381738 retry : 2
17391739 id_tokens : # http://go/gitlab-17
17401740 CI_JOB_JWT :
@@ -1767,9 +1767,9 @@ push-multiarch-manifest:
17671767 # Update the linux multiarch manifest to include the windows images
17681768 echo "Updating and pushing ${MANIFEST_NAME}:${MANIFEST_TAG} manifest"
17691769 docker buildx imagetools create --tag ${MANIFEST_NAME}:${MANIFEST_TAG} \
1770- ${MANIFEST_NAME}:${MANIFEST_TAG} # \
1771- # ${MANIFEST_NAME}:${MANIFEST_TAG}-2019 \
1772- # ${MANIFEST_NAME}:${MANIFEST_TAG}-2022
1770+ ${MANIFEST_NAME}:${MANIFEST_TAG} \
1771+ ${MANIFEST_NAME}:${MANIFEST_TAG}-2019 \
1772+ ${MANIFEST_NAME}:${MANIFEST_TAG}-2022
17731773 else
17741774 # DEPRECATED: Create the windows multiarch manifest for the windows images
17751775 echo "Creating and pushing ${MANIFEST_NAME}:${MANIFEST_TAG} manifest"
@@ -1792,9 +1792,9 @@ push-multiarch-manifest:
17921792 echo "$json"
17931793 # Check number of images in the manifest
17941794 count=$( echo "$json" | jq -r ".manifests | length" )
1795- if [[ "$MANIFEST" = "multiarch" && "$FIPS" == "" && $count -ne 3 ]]; then
1795+ if [[ "$MANIFEST" = "multiarch" && "$FIPS" == "" && $count -ne 5 ]]; then
17961796 exit 1
1797- elif [[ "$MANIFEST" = "multiarch" && "$FIPS" == "-fips" && $count -ne 2 ]]; then
1797+ elif [[ "$MANIFEST" = "multiarch" && "$FIPS" == "-fips" && $count -ne 4 ]]; then
17981798 exit 1
17991799 elif [[ "$MANIFEST" = "windows_multiarch" && $count -ne 2 ]]; then
18001800 exit 1
@@ -1813,18 +1813,18 @@ push-multiarch-manifest:
18131813 done
18141814 fi
18151815 # Check the manifest for the windows images
1816- # for base_image in "$WIN_2019_BASE_IMAGE" "$WIN_2022_BASE_IMAGE"; do
1817- # os_version=$( docker buildx imagetools inspect --raw $base_image | jq -r '.manifests[0] | .platform."os.version"' )
1818- # if [[ -z "$os_version" ]]; then
1819- # echo "Failed to get os.version from $base_image"
1820- # exit 1
1821- # fi
1822- # found=$( echo "$json" | jq -r ".manifests[] | select(.platform.architecture == \"amd64\" and .platform.os == \"windows\" and .platform.\"os.version\" == \"${os_version}\")" )
1823- # if [[ -z "$found" ]]; then
1824- # echo "windows/amd64/${os_version} not found in ${MANIFEST_NAME}:${tag}"
1825- # exit 1
1826- # fi
1827- # done
1816+ for base_image in "$WIN_2019_BASE_IMAGE" "$WIN_2022_BASE_IMAGE"; do
1817+ os_version=$( docker buildx imagetools inspect --raw $base_image | jq -r '.manifests[0] | .platform."os.version"' )
1818+ if [[ -z "$os_version" ]]; then
1819+ echo "Failed to get os.version from $base_image"
1820+ exit 1
1821+ fi
1822+ found=$( echo "$json" | jq -r ".manifests[] | select(.platform.architecture == \"amd64\" and .platform.os == \"windows\" and .platform.\"os.version\" == \"${os_version}\")" )
1823+ if [[ -z "$found" ]]; then
1824+ echo "windows/amd64/${os_version} not found in ${MANIFEST_NAME}:${tag}"
1825+ exit 1
1826+ fi
1827+ done
18281828 done
18291829 - |
18301830 # Get the manifest digest
@@ -1855,7 +1855,7 @@ sign-multiarch-manifest:
18551855 stage : docker-manifest-release
18561856 parallel :
18571857 matrix :
1858- - MANIFEST : [multiarch] # , windows_multiarch
1858+ - MANIFEST : [multiarch, windows_multiarch]
18591859 FIPS : ["-fips",""]
18601860 needs :
18611861 - push-multiarch-manifest
0 commit comments