github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/DOCKER/build.sh (about) 1 #!/usr/bin/env bash 2 set -e 3 4 if [ -z "$TAG" ]; then 5 echo "Please specify a tag." 6 exit 1 7 fi 8 9 TAG_NO_PATCH=${TAG%.*} 10 11 read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r 12 echo 13 if [[ $REPLY =~ ^[Yy]$ ]] 14 then 15 docker build -t "ostracon/ostracon" -t "ostracon/ostracon:$TAG" -t "ostracon/ostracon:$TAG_NO_PATCH" -f ./Dockerfile ../ 16 fi