-
Notifications
You must be signed in to change notification settings - Fork 22
/
release_docker.sh
executable file
·36 lines (29 loc) · 1.15 KB
/
release_docker.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
25
26
27
28
29
30
31
32
33
34
35
36
# argument version
set -eux
while getopts "v:" opt; do
case $opt in
v)
version=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
if [ -z "$version" ]; then
echo "version is required"
exit 1
fi
export PYTHONPATH=$PWD pytest tests
docker build -f Docker/Evaluate.Dockerfile . -t bigcodebench/bigcodebench-evaluate:$version
docker tag bigcodebench/bigcodebench-evaluate:$version bigcodebench/bigcodebench-evaluate:latest
docker push bigcodebench/bigcodebench-evaluate:$version
docker push bigcodebench/bigcodebench-evaluate:latest
docker build -f Docker/Generate.Dockerfile . -t bigcodebench/bigcodebench-generate:$version
docker tag bigcodebench/bigcodebench-generate:$version bigcodebench/bigcodebench-generate:latest
docker push bigcodebench/bigcodebench-generate:$version
docker push bigcodebench/bigcodebench-generate:latest
docker build -f Docker/Gradio.Dockerfile . -t bigcodebench/bigcodebench-gradio:$version
docker tag bigcodebench/bigcodebench-gradio:$version bigcodebench/bigcodebench-gradio:latest
docker push bigcodebench/bigcodebench-gradio:$version
docker push bigcodebench/bigcodebench-gradio:latest