From d76aa6339bd363d34fecd09bc42076d6ca6dfc4e Mon Sep 17 00:00:00 2001 From: Zhecheng Li Date: Sun, 27 Mar 2022 20:48:41 +0800 Subject: [PATCH] Update make target when ccm test Linux and Windows tests should only build images they needed instead of build everything. Signed-off-by: Zhecheng Li --- scripts/ci-build-azure-ccm.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/ci-build-azure-ccm.sh b/scripts/ci-build-azure-ccm.sh index 307c3be8376..658b72c5fe5 100755 --- a/scripts/ci-build-azure-ccm.sh +++ b/scripts/ci-build-azure-ccm.sh @@ -49,8 +49,15 @@ setup() { main() { if [[ "$(can_reuse_artifacts)" == "false" ]]; then - echo "Building Azure cloud controller manager and cloud node manager..." - make -C "${AZURE_CLOUD_PROVIDER_ROOT}" image push + echo "Build Linux Azure amd64 cloud controller manager" + make -C "${AZURE_CLOUD_PROVIDER_ROOT}" build-ccm-image-amd64 push-ccm-image-amd64 + if [[ -n "${TEST_WINDOWS:-}" ]]; then + echo "Building Linux amd64 and Windows ltsc2022 amd64 cloud node managers" + make -C "${AZURE_CLOUD_PROVIDER_ROOT}" build-node-image-linux-amd64 push-node-image-linux-amd64 push-node-image-windows-ltsc2022-amd64 manifest-node-manager-image-windows-ltsc2022-amd64 + else + echo "Building Linux amd64 cloud node manager" + make -C "${AZURE_CLOUD_PROVIDER_ROOT}" build-node-image-linux-amd64 push-node-image-linux-push-name-amd64 + fi fi }