[ci]: build docker-ptf on vs platform

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
Guohan Lu 2021-01-24 21:05:31 -08:00 committed by lguohan
parent 044efe72ca
commit f3a901c41e
2 changed files with 2 additions and 1 deletions

View File

@ -3,3 +3,4 @@
!target/*.log
!target/*.img.gz
!target/docker-sonic-vs.gz
!target/docker-ptf.gz

View File

@ -81,7 +81,7 @@ stages:
ENABLE_DOCKER_BASE_PULL=y make configure PLATFORM=vs
trap "sudo rm -rf fsroot" EXIT
make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS \
target/docker-sonic-vs.gz target/sonic-vs.img.gz && \
target/docker-sonic-vs.gz target/sonic-vs.img.gz target/docker-ptf.gz && \
sudo cp target/sonic-vs.img.gz /nfs/azpl/kvmimage/sonic-vs.$(Build.BuildNumber).img.gz && \
sudo cp target/docker-sonic-vs.gz /nfs/azpl/kvmimage/docker-sonic-vs.$(Build.BuildNumber).gz
displayName: 'Build sonic image'