Publish docker saiserverv2 in 202012 branch (#12903)
# Why I did it Publish docker saiserverv2 in the build pipeline. # How I did it Add docker saiserverv2 target in the build template. # How to verify it Run test in #12836 and the target has been built out successfully. Signed-off-by: zitingguo-ms <zitingguo@microsoft.com>
This commit is contained in:
parent
09a4854716
commit
e377b03a94
@ -123,7 +123,17 @@ jobs:
|
|||||||
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw
|
make $BUILD_OPTIONS target/sonic-$(GROUP_NAME).raw
|
||||||
fi
|
fi
|
||||||
if [ $(docker_syncd_rpc_image) == yes ]; then
|
if [ $(docker_syncd_rpc_image) == yes ]; then
|
||||||
|
# workaround for issue in rules/sairedis.dep, git ls-files will list un-exist files for cache
|
||||||
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-rpc.gz
|
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/docker-syncd-$(platform_rpc)-rpc.gz
|
||||||
|
pushd ./src/sonic-sairedis/SAI
|
||||||
|
git stash
|
||||||
|
popd
|
||||||
|
if [ $(GROUP_NAME) == broadcom ]; then
|
||||||
|
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-saiserverv2-brcm.gz
|
||||||
|
pushd ./src/sonic-sairedis/SAI
|
||||||
|
git stash
|
||||||
|
popd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $(syncd_rpc_image) == yes ]; then
|
if [ $(syncd_rpc_image) == yes ]; then
|
||||||
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/sonic-$(GROUP_NAME).bin
|
make $BUILD_OPTIONS ENABLE_SYNCD_RPC=y target/sonic-$(GROUP_NAME).bin
|
||||||
|
@ -105,6 +105,16 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
if [ ${{ parameters.sync_rpc_image }} == true ]; then
|
if [ ${{ parameters.sync_rpc_image }} == true ]; then
|
||||||
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) ENABLE_SYNCD_RPC=y target/docker-syncd-${{ parameters.platform_short }}-rpc.gz
|
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) ENABLE_SYNCD_RPC=y target/docker-syncd-${{ parameters.platform_short }}-rpc.gz
|
||||||
|
# workaround for issue in rules/sairedis.dep, git ls-files will list un-exist files for cache
|
||||||
|
pushd ./src/sonic-sairedis/SAI
|
||||||
|
git stash
|
||||||
|
popd
|
||||||
|
if [ ${{ parameters.platform }} == broadcom ]; then
|
||||||
|
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y target/docker-saiserverv2-brcm.gz
|
||||||
|
pushd ./src/sonic-sairedis/SAI
|
||||||
|
git stash
|
||||||
|
popd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) target/sonic-${{ parameters.platform }}.bin
|
make USERNAME=admin $CACHE_OPTIONS SONIC_BUILD_JOBS=$(nproc) target/sonic-${{ parameters.platform }}.bin
|
||||||
|
Loading…
Reference in New Issue
Block a user