Skip to content

Commit

Permalink
chor: 增加pre-release脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Dec 17, 2023
1 parent 7ab3246 commit 8d9e74a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pre-release.sh
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

0 comments on commit 8d9e74a

Please sign in to comment.