s'assurer que NDIST est calculé
This commit is contained in:
parent
1e481044eb
commit
e78becb92a
|
@ -115,6 +115,7 @@ function build_images() {
|
||||||
*)
|
*)
|
||||||
if [ -z "$sourced" ]; then
|
if [ -z "$sourced" ]; then
|
||||||
source "$PROJDIR/$BUILDENV"
|
source "$PROJDIR/$BUILDENV"
|
||||||
|
after_source_buildenv
|
||||||
read -a HOST_MAPPINGS <<<"${HOST_MAPPINGS//
|
read -a HOST_MAPPINGS <<<"${HOST_MAPPINGS//
|
||||||
/ }"
|
/ }"
|
||||||
sourced=1
|
sourced=1
|
||||||
|
|
|
@ -33,7 +33,9 @@ fi
|
||||||
[ "$BUILDENV0" == none ] && BUILDENV0=
|
[ "$BUILDENV0" == none ] && BUILDENV0=
|
||||||
[ "$BUILDENV" == none ] && BUILDENV=
|
[ "$BUILDENV" == none ] && BUILDENV=
|
||||||
|
|
||||||
NDIST="${DIST#d}"
|
function after_source_buildenv() {
|
||||||
|
NDIST="${DIST#d}"
|
||||||
|
}
|
||||||
|
|
||||||
[ -n "$_sourced" ] && return 0
|
[ -n "$_sourced" ] && return 0
|
||||||
|
|
||||||
|
@ -184,8 +186,10 @@ if [ -z "$_RUNDK_IN_DOCKER" ]; then
|
||||||
if [ -z "$bootstrap" ]; then
|
if [ -z "$bootstrap" ]; then
|
||||||
if [ -n "$BUILDENV" -a -f "$PROJDIR/$BUILDENV" ]; then
|
if [ -n "$BUILDENV" -a -f "$PROJDIR/$BUILDENV" ]; then
|
||||||
source "$PROJDIR/$BUILDENV" || exit 1
|
source "$PROJDIR/$BUILDENV" || exit 1
|
||||||
|
after_source_buildenv
|
||||||
elif [ -n "$BUILDENV0" -a -f "$PROJDIR/$BUILDENV0" ]; then
|
elif [ -n "$BUILDENV0" -a -f "$PROJDIR/$BUILDENV0" ]; then
|
||||||
source "$PROJDIR/$BUILDENV0" || exit 1
|
source "$PROJDIR/$BUILDENV0" || exit 1
|
||||||
|
after_source_buildenv
|
||||||
fi
|
fi
|
||||||
if [ -z "$IMAGE" ]; then
|
if [ -z "$IMAGE" ]; then
|
||||||
[ -n "$PRIVAREG" ] && IMAGE="$PRIVAREG/$IMAGENAME:$DIST" || IMAGE="$REGISTRY/$IMAGENAME:$DIST"
|
[ -n "$PRIVAREG" ] && IMAGE="$PRIVAREG/$IMAGENAME:$DIST" || IMAGE="$REGISTRY/$IMAGENAME:$DIST"
|
||||||
|
@ -273,6 +277,7 @@ OPTIONS
|
||||||
[ "$Config" == none ] && Config=
|
[ "$Config" == none ] && Config=
|
||||||
if [ -n "$Config" ]; then
|
if [ -n "$Config" ]; then
|
||||||
source "$Config" || exit 1
|
source "$Config" || exit 1
|
||||||
|
after_source_buildenv
|
||||||
fi
|
fi
|
||||||
[ -n "$Dist" ] && DIST="$Dist"
|
[ -n "$Dist" ] && DIST="$Dist"
|
||||||
if [ -z "$IMAGE" ]; then
|
if [ -z "$IMAGE" ]; then
|
||||||
|
|
Loading…
Reference in New Issue