Skip to content

Commit

Permalink
demo: add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangyt committed Nov 26, 2024
1 parent 0670bc3 commit 53e4c41
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions demo/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

version=20241126A
demo_repo_d=/data/batchai/batchai/demo
tag_suffix=${version} #$(date +"%Y%m%d-%H%M%S")
registry=registry.cn-shanghai.aliyuncs.com/wxcount

# build server
server_tag=${registry}/batchai-demo-server:${tag_suffix}
docker build -t ${server_tag} ${demo_repo_d}/server

# build web
web_tag=${registry}/batchai-demo-web:${tag_suffix}
docker build -t ${web_tag} ${demo_repo_d}/web


echo docker push ${server_tag}
echo docker push ${web_tag}

0 comments on commit 53e4c41

Please sign in to comment.