From 8609b0ad6ed15536266c2e34d2b5b99eabd54ecd Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Sat, 9 Jul 2022 11:14:16 +0800 Subject: [PATCH] =?UTF-8?q?2.5.7=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=85=A8=E9=9B=86=E6=94=B6=E9=9B=86?= =?UTF-8?q?=E5=8F=AA=E6=9C=89=E7=AC=AC=E4=B8=80=E6=AC=A1=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=9A=84bug=EF=BC=8C=E5=AE=8C=E5=96=84api=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 + .github/workflows/docker.yml | 36 ++++++++++++++++++++++++++++++++++++ docs/部署说明.md | 1 + 3 files changed, 38 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.dockerignore b/.dockerignore index 8e05b4b9..d54de7e3 100644 --- a/.dockerignore +++ b/.dockerignore @@ -19,5 +19,6 @@ coverage.xml .pytest_cache .hypothesis +auto_bangumi/tests auto_bangumi/conf/const_dev.py config/bangumi.json/config/bangumi.json diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 00000000..e634a9ca --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,36 @@ +name: ci + +on: + push: + branches: + - 'main' + tags: + - 'v*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ secrets.DOCKERHUB_USERNAME }}/auto_bangumi:latest \ No newline at end of file diff --git a/docs/部署说明.md b/docs/部署说明.md index 517477ae..921afd2c 100644 --- a/docs/部署说明.md +++ b/docs/部署说明.md @@ -28,6 +28,7 @@ - [安装说明](https://github.com/linuxserver/docker-qbittorrent) - [群晖安装 qBittorrent](https://post.smzdm.com/p/a5k64587/) +----- # 部署 AutoBangumi ## 在 Linux 主机中使用 **Docker Compose** 一键部署