blob: 40cae6ccf817bc0dd2023d338cc8ce2a5bcc9473 (
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:-centos}
function build_rpm_pkg {
case $1 in
centos)
sudo docker build -t kvm_rpm .
sudo docker run -v $WORKSPACE:/opt/kvmfornfv -t kvm_rpm \
/opt/kvmfornfv/ci/build_rpm/build_rpms_docker.sh
;;
*) echo "Not supported system"; exit 1;;
esac
}
for system in $BUILD_FOR
do
build_rpm_pkg $system
done
|