diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2016-08-23 22:17:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-23 22:17:42 +0000 |
commit | 76c2ed6659d79ee83c8fc4f00e955268779db826 (patch) | |
tree | 5bbdc58f68f4cd56816dfba3dc8e92a8f9f2a135 /ci/build_rpm/build_rpms.sh | |
parent | 2b76a9cbd6c127109286c8705f3347415eb26753 (diff) | |
parent | 7552c26370d38ef5dd182682a0d3bf096661fe0e (diff) |
Merge "OPNFV KVM4NFV CICD: Scripts for creating Rpms & Debians for Kernel, Qemu"
Diffstat (limited to 'ci/build_rpm/build_rpms.sh')
-rwxr-xr-x | ci/build_rpm/build_rpms.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ci/build_rpm/build_rpms.sh b/ci/build_rpm/build_rpms.sh new file mode 100755 index 000000000..40cae6ccf --- /dev/null +++ b/ci/build_rpm/build_rpms.sh @@ -0,0 +1,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 |