[ci]: build docker-sonic-vs.gz in kvm build pipeline (#6494)
Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
afee1a851c
commit
53c2a0a606
@ -2,3 +2,4 @@
|
||||
!target/*.bin
|
||||
!target/*.log
|
||||
!target/*.img.gz
|
||||
!target/docker-sonic-vs.gz
|
||||
|
@ -75,7 +75,8 @@ stages:
|
||||
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/vs"
|
||||
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/sonic-vs.img.gz && \
|
||||
make USERNAME=admin SONIC_BUILD_JOBS=$(nproc) $CACHE_OPTIONS \
|
||||
target/docker-sonic-vs.gz target/sonic-vs.img.gz && \
|
||||
sudo cp target/sonic-vs.img.gz /nfs/azpl/kvmimage/sonic-vs.$(Build.BuildNumber).img.gz
|
||||
displayName: 'Build sonic image'
|
||||
- publish: $(System.DefaultWorkingDirectory)/
|
||||
|
Loading…
Reference in New Issue
Block a user