modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2024-03-27 15:33:59 +04:00
parent e79e74d379
commit 2ca4332063
1 changed files with 12 additions and 4 deletions

View File

@ -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