modifs.mineures sans commentaires
This commit is contained in:
parent
e79e74d379
commit
2ca4332063
|
@ -172,6 +172,18 @@ if [ -z "$_RUNDK_IN_DOCKER" ]; then
|
|||
fi
|
||||
IMAGENAME=nulib/rundk
|
||||
|
||||
if [ -z "$bootstrap" ]; then
|
||||
if [ -f "$PROJDIR/$BUILDENV" ]; then
|
||||
source "$PROJDIR/$BUILDENV" || exit 1
|
||||
fi
|
||||
if [ -z "$IMAGE" ]; then
|
||||
[ -n "$PRIVAREG" ] && IMAGE="$PRIVAREG/$IMAGENAME" || IMAGE="$REGISTRY/$IMAGENAME"
|
||||
fi
|
||||
if [ -z "$(docker image ls --no-trunc --format '{{.Repository}}:{{.Tag}}' "$IMAGE" 2>/dev/null)" ]; then
|
||||
bootstrap=1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "$bootstrap" ]; then
|
||||
BUILD_ARGS=(
|
||||
REGISTRY
|
||||
|
@ -309,10 +321,6 @@ OPTIONS
|
|||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ -z "$IMAGE" ]; then
|
||||
[ -n "$PRIVAREG" ] && IMAGE="$PRIVAREG/$IMAGENAME" || IMAGE="$REGISTRY/$IMAGENAME"
|
||||
fi
|
||||
fi
|
||||
|
||||
## Lancer la commande
|
||||
|
|
Loading…
Reference in New Issue