build.sh: added ability to build a single release.
This commit is contained in:
parent
75052f02ea
commit
38954802cc
16
build.sh
16
build.sh
@ -3,11 +3,20 @@
|
|||||||
#
|
#
|
||||||
# Build Odoo 8.0/9.0/10.0 base+release docker container images.
|
# Build Odoo 8.0/9.0/10.0 base+release docker container images.
|
||||||
#
|
#
|
||||||
|
# usage:
|
||||||
|
# # all
|
||||||
|
# bash build.sh
|
||||||
|
#
|
||||||
|
# # single version
|
||||||
|
# bash build.sh 20161230
|
||||||
|
#
|
||||||
# author: Pedro Salgado <steenzout@ymail.com>
|
# author: Pedro Salgado <steenzout@ymail.com>
|
||||||
# version: 1.0
|
# version: 1.0
|
||||||
#
|
#
|
||||||
# #####
|
# #####
|
||||||
|
|
||||||
|
ARG_RELEASE="${1}"
|
||||||
|
|
||||||
for ODOO_VERSION in 8.0 9.0 10.0
|
for ODOO_VERSION in 8.0 9.0 10.0
|
||||||
do
|
do
|
||||||
|
|
||||||
@ -21,11 +30,16 @@ do
|
|||||||
ODOO_RELEASE="${line_array[0]}"
|
ODOO_RELEASE="${line_array[0]}"
|
||||||
ODOO_SHA1SUM="${line_array[1]}"
|
ODOO_SHA1SUM="${line_array[1]}"
|
||||||
|
|
||||||
echo "building steenzout/odoo:${ODOO_VERSION}.${ODOO_RELEASE}..."
|
echo "'${ARG_RELEASE}' == '${ODOO_RELEASE}'"
|
||||||
|
|
||||||
|
if [[ "${ARG_RELEASE}" == "" || "${ARG_RELEASE}" == "${ODOO_RELEASE}" ]]; then
|
||||||
|
|
||||||
|
echo "building steenzout/odoo:${ODOO_VERSION}.${ODOO_RELEASE}..."
|
||||||
cd "${ODOO_VERSION}/${ODOO_RELEASE}/"
|
cd "${ODOO_VERSION}/${ODOO_RELEASE}/"
|
||||||
docker build -t "steenzout/odoo:${ODOO_VERSION}.${ODOO_RELEASE}" -f "Dockerfile" .
|
docker build -t "steenzout/odoo:${ODOO_VERSION}.${ODOO_RELEASE}" -f "Dockerfile" .
|
||||||
cd ../../
|
cd ../../
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user