From ebfe6c5215b05d94ef541bc77710444ec9ffd2fa Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Sun, 17 May 2026 19:50:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9E=84=E5=BB=BA=E5=B9=B6=E6=8E=A8?= =?UTF-8?q?=E9=80=81=20mysql-novel-plus=20=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 16 ++++++++++++++++ doc/sql/Dockerfile | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16efbf0..f43a62f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -118,3 +118,19 @@ jobs: tags: | ${{ secrets.DOCKERHUB_USERNAME }}/novel-crawl:latest ${{ secrets.DOCKERHUB_USERNAME }}/novel-crawl:${{ github.ref_name }} + + # 解压 SQL 文件 + - name: Unzip MySQL SQL File + run: | + unzip -o ./doc/sql/novel_plus_data.sql.zip -d ./doc/sql/ + + # 构建并推送 mysql-novel-plus 镜像 + - name: Build and Push mysql-novel-plus Docker Image + uses: docker/build-push-action@v5 + with: + context: ./doc/sql + file: ./doc/sql/Dockerfile + push: true + tags: | + 201206030/mysql-novel-plus:latest + 201206030/mysql-novel-plus:${{ github.ref_name }} \ No newline at end of file diff --git a/doc/sql/Dockerfile b/doc/sql/Dockerfile index 47a4b8c..fddb124 100644 --- a/doc/sql/Dockerfile +++ b/doc/sql/Dockerfile @@ -1,2 +1,2 @@ FROM mysql:8.0 -COPY novel_plus.sql /docker-entrypoint-initdb.d/init.sql +COPY novel_plus_data.sql /docker-entrypoint-initdb.d/init.sql