forked from feixuei/chatgpt-mirror-server
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ab3246
commit 8d9e74a
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# registry.cn-beijing.aliyuncs.com/ | ||
set -e | ||
|
||
gf build main.go -a amd64 -s linux | ||
gf docker main.go -t liuhuapiaoyuan/chatgpt-mirror-server:pre-release | ||
# 修改镜像标签为当前日期时间 | ||
time=$(date "+%Y%m%d%H%M%S") | ||
docker tag liuhuapiaoyuan/chatgpt-mirror-server:pre-release liuhuapiaoyuan/chatgpt-mirror-server:pre-$time | ||
# 推送镜像到docker hub | ||
docker push liuhuapiaoyuan/chatgpt-mirror-server:pre-release | ||
docker push liuhuapiaoyuan/chatgpt-mirror-server:pre-$time |