-
Notifications
You must be signed in to change notification settings - Fork 284
/
push_to_hub.sh
24 lines (20 loc) · 766 Bytes
/
push_to_hub.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [ "$#" -ne 1 ]; then
read -p "No tag provided. pushing images as :latest. Are you sure? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
tag="latest"
fi
else
tag=$1
fi
echo "updating images with tag $tag"
docker tag vertaaiofficial/modeldb-backend:latest vertaaiofficial/modeldb-backend:$tag
docker tag vertaaiofficial/modeldb-proxy:latest vertaaiofficial/modeldb-proxy:$tag
docker tag vertaaiofficial/modeldb-frontend:latest vertaaiofficial/modeldb-frontend:$tag
docker tag vertaaiofficial/modeldb-graphql:latest vertaaiofficial/modeldb-graphql:$tag
docker push vertaaiofficial/modeldb-backend:$tag
docker push vertaaiofficial/modeldb-proxy:$tag
docker push vertaaiofficial/modeldb-frontend:$tag
docker push vertaaiofficial/modeldb-graphql:$tag