Skip to content

Commit

Permalink
Update make target when ccm test
Browse files Browse the repository at this point in the history
Linux and Windows tests should only build images they needed instead of
build everything. So arch and os variables are set before make.

Signed-off-by: Zhecheng Li <[email protected]>
  • Loading branch information
lzhecheng committed Mar 28, 2022
1 parent d1c5203 commit 330271b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/ci-build-azure-ccm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,17 @@ 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 "Building Linux Azure amd64 cloud controller and node managers"
make -C "${AZURE_CLOUD_PROVIDER_ROOT}" build-ccm-image-amd64 push-ccm-image-amd64
make -C "${AZURE_CLOUD_PROVIDER_ROOT}" build-node-image-linux-amd64 push-node-image-linux-amd64
if [[ -n "${TEST_WINDOWS:-}" ]]; then
echo "Building Windows ltsc2022 amd64 cloud node manager"
make -C "${AZURE_CLOUD_PROVIDER_ROOT}" push-node-image-windows-ltsc2022-amd64
else
export SPECIFIC_OSVERSIONS_WINDOWS=""
fi
echo "Create and push a manifest list containing all the Windows and Linux images."
make -C "${AZURE_CLOUD_PROVIDER_ROOT}" push-specific-arch-os-node-manager-image
fi
}

Expand Down

0 comments on commit 330271b

Please sign in to comment.