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 27, 2022
1 parent d1c5203 commit 340efab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/ci-build-azure-ccm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ setup() {

main() {
if [[ "$(can_reuse_artifacts)" == "false" ]]; then
echo "Building Azure cloud controller manager and cloud node manager..."
echo "Building Linux Azure amd64 cloud controller manager and Linux amd64 cloud node manager..."
export ALL_ARCH_LINUX="amd64"
if [[ -n "${TEST_WINDOWS:-}" ]]; then
echo "Building Windows amd64 cloud node manager..."
export ALL_OSVERSIONS_WINDOWS="ltsc2022"
else
export ALL_OSVERSIONS_WINDOWS=""
fi
make -C "${AZURE_CLOUD_PROVIDER_ROOT}" image push
fi
}
Expand Down

0 comments on commit 340efab

Please sign in to comment.