2 # Copyright 2016 The Linux Foundation
11 CI_MGMT=$(realpath $(dirname $(realpath $0))/..)
13 source ${CI_MGMT}/vagrant/lib/respin-functions.sh
16 echo nova: $(which nova)
18 export NETID=${NETID:-$(nova network-list | awk "/${CPPROJECT}/ {print \$2}")}
20 for PLATFORM in "${SUPPORTED_PLATFORMS[@]}"
22 read -ra DVA <<< "${PLATFORM}"
26 DTYPE=$(dist_type ${DIST})
28 AGE_JSON=$(latest_src_age ${DIST} ${VERSION} ${ARCH});
30 # only fetch new base image if our latest one is more than two weeks old
31 if [ $(echo ${AGE_JSON} | jq .week) -ge "3" ]
33 # Acquire bootstrap images
34 download_${DTYPE}_image "${DIST}" "${VERSION}" "${ARCH}"
36 # Push images to openstack via glance
37 create_${DTYPE}_image "${DIST}" "${VERSION}" "${ARCH}"
41 cd ${CI_MGMT}/vagrant/basebuild
42 respin_${DTYPE}_image "${DIST}" "${VERSION}" "${ARCH}"