1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-16 23:08:13 +00:00

os-extras and os-headers images are built for release/ci

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2016-11-14 20:10:09 +10:00
parent be37a79440
commit 62bdf18b9d
14 changed files with 161 additions and 58 deletions

View File

@@ -7,19 +7,24 @@ BASE=images
source $(dirname $0)/version
cd $(dirname $0)/..
for i in $BASE/[0-9]*; do
mkdir -p dist
> dist/images
for i in $BASE/[1-9]*; do
name="os-$(echo ${i} | cut -f2 -d-)"
tag="${OS_REPO}/${name}:${VERSION}${SUFFIX}"
tag="${OS_REPO}/${name}:${KERNEL_VERSION}${SUFFIX}"
echo Building ${tag}
if [ -x ${i}/prebuild.sh ]; then
if [ -e ${i}/prebuild.sh ]; then
echo "running ${i}/prebuild.sh in $(pwd)"
${i}/prebuild.sh
fi
if dapper -d --build -f ${i}/Dockerfile -- -t rancher/${name} ${i}; then
if dapper -d --build -f ${i}/Dockerfile -- -t rancher/${name} --build-arg KERNEL_VERSION ${i}; then
docker tag rancher/${name} ${tag}
echo ${tag} >> dist/images
elif [ "$?" != "42" ]; then
exit 1
else
echo "WARN: Skipping ${tag}"
echo "Skipping ${tag}"
fi
done