github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/DOCKER/push.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 "==> Push 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 push "ostracon/ostracon:latest"
    16  	docker push "ostracon/ostracon:$TAG"
    17  	docker push "ostracon/ostracon:$TAG_NO_PATCH"
    18  fi