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.

Signed-off-by: Zhecheng Li <[email protected]>
  • Loading branch information
lzhecheng committed Mar 28, 2022
1 parent d1c5203 commit d76aa63
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/ci-build-azure-ccm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d76aa63

Please sign in to comment.