File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -53,16 +53,16 @@ build_image() {
5353 docker build --build-arg BUILDKIT_INLINE_CACHE=1 -t " $IMAGE_NAME " -f " $DOCKERFILE " .
5454}
5555
56- IMAGE_ID=$( docker inspect --type=image -f ' {{.Id}}' " $IMAGE_NAME " 2> /dev/null || true)
57- if [ -z " $IMAGE_ID " ]; then
58- echo " $( tput setaf 4) > image $IMAGE_NAME doesn't exist$( tput sgr0) "
59- build_image
60- elif [ " $REBUILD " = " true" ]; then
61- echo " $( tput setaf 4) > rebuild of $IMAGE_NAME requested$( tput sgr0) "
62- build_image
63- else
64- echo " $( tput setaf 4) > image $IMAGE_NAME already exists$( tput sgr0) "
65- fi
56+ # IMAGE_ID=$(docker inspect --type=image -f '{{.Id}}' "$IMAGE_NAME" 2> /dev/null || true)
57+ # if [ -z "$IMAGE_ID" ]; then
58+ # echo "$(tput setaf 4) > image $IMAGE_NAME doesn't exist$(tput sgr0)"
59+ # build_image
60+ # elif [ "$REBUILD" = "true" ]; then
61+ # echo "$(tput setaf 4) > rebuild of $IMAGE_NAME requested$(tput sgr0)"
62+ # build_image
63+ # else
64+ # echo "$(tput setaf 4) > image $IMAGE_NAME already exists$(tput sgr0)"
65+ # fi
6666
6767set +e
6868RUNNING=$( docker ps --format ' {{.Names}}' | grep " $CONTAINER_NAME " )
You can’t perform that action at this time.
0 commit comments