From 276b88274ffbb44e0b04ddd70d90af72f91c2ab1 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Tue, 20 Aug 2024 11:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=83=E7=89=9B=E4=BA=91=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 1 + scripts/qiniu_publish.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 05fc70b4..040fe3ce 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,5 +91,6 @@ jobs: AccessKey: ${{ secrets.AK }} SecretKey: ${{ secrets.SK }} QINIU_BUCKET: ${{ secrets.QINIU_BUCKET }} + QINIU_NAME: ${{ secrets.QINIU_NAME }} run: cd scripts && ./docker_publish.sh ${{ secrets.DOCKER_USERNAME }} "backend" "upload_qiniu" diff --git a/scripts/qiniu_publish.sh b/scripts/qiniu_publish.sh index c2d4a2ff..11d09881 100755 --- a/scripts/qiniu_publish.sh +++ b/scripts/qiniu_publish.sh @@ -19,7 +19,7 @@ echo "docker save -o ${Tar} ${ImageName}:${Version}" docker save -o ${Tar} ${ImageName}:${Version} echo "login qiniu..." -qshell account ${AccessKey} ${SecretKey} +qshell account ${AccessKey} ${SecretKey} ${QINIU_NAME} echo "qshell rput ${QINIU_BUCKET} \"${APP}/images/${Tar}\" ${Tar}" qshell rput ${QINIU_BUCKET} "${APP}/images/${Tar}" ${Tar}