From 8d9e74a13e3948a04f9cc22673972279e38a08fa Mon Sep 17 00:00:00 2001 From: liuhuapiaoyuan <278780765@qq.com> Date: Sun, 17 Dec 2023 23:56:28 +0800 Subject: [PATCH] =?UTF-8?q?chor:=20=E5=A2=9E=E5=8A=A0pre-release=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pre-release.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pre-release.sh diff --git a/pre-release.sh b/pre-release.sh new file mode 100644 index 0000000..5750df8 --- /dev/null +++ b/pre-release.sh @@ -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 \ No newline at end of file