blob: 2fcd3629b46520eaeec84cce8c5aefd635b00580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
set -eux
BUILD_FOR=${BUILD_FOR:-ubuntu}
function build_deb_pkg {
case $1 in
ubuntu)
sudo docker build -t kvm_deb .
sudo docker run -v $WORKSPACE:/opt/kvmfornfv -t kvm_deb \
/opt/kvmfornfv/ci/build_deb/build_debs_docker.sh
;;
*) echo "Not supported system"; exit 1;;
esac
}
for system in $BUILD_FOR
do
build_deb_pkg $system
done
|