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** 一键部署