1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-07-20 04:23:01 +08:00

https://github.com/chatopera/cskefu/issues/485 fix typo for APPLICATION_CUSTOMER_ENTITY

This commit is contained in:
Hai Liang Wang 2021-10-17 10:35:01 +08:00
parent e4003e3d30
commit cad857da3b

View File

@ -8,7 +8,6 @@ baseDir=$(cd `dirname "$0"`;pwd)
appHome=$baseDir/..
registryPrefix=
imagename=chatopera/contact-center
TIMESTAMP=`date "+%Y%m%d.%H%M%S"`
# functions
@ -20,18 +19,20 @@ if [ -d ../private ]; then
registryPrefix=dockerhub.qingcloud.com/
fi
TIMESTAMP=`date "+%Y%m%d.%H%M%S"`
PACKAGE_VERSION=`git rev-parse --short HEAD`
APPLICATION_CUSTOMER_ENTITY=${APPLICATION_CUSTOMER_ENTITY:-"OpenSource Community"}
set -x
$baseDir/package.sh
if [ ! $? -eq 0 ]; then
exit 1
fi
set -x
docker build --build-arg VCS_REF=$PACKAGE_VERSION \
--build-arg APPLICATION_BUILD_DATESTR=$TIMESTAMP \
--build-arg APPLICATION_CUSTOMER_ENTITY=$APPLICATION_CUSTOMER_ENTITY \
--build-arg APPLICATION_CUSTOMER_ENTITY="$APPLICATION_CUSTOMER_ENTITY" \
--no-cache \
--force-rm=true --tag $registryPrefix$imagename:$PACKAGE_VERSION .