From 022da6c2187f69831777b6e56886023324ee3b7c Mon Sep 17 00:00:00 2001 From: mokeyjay Date: Sat, 11 Nov 2023 23:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E7=89=B9=E5=88=AB=E9=B8=A3?= =?UTF-8?q?=E8=B0=A2=EF=BC=9B=E6=B7=BB=E5=8A=A0=20develop=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=B5=81=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/develop.yml | 38 ++++++++++++++++++++++++++++++ .github/workflows/docker-image.yml | 2 +- README.en.md | 5 ---- README.md | 5 ---- 4 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/develop.yml diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..9cfe0de --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,38 @@ +name: 推送开发用的 docker 镜像 +on: + push: + branches: + - 'develop' + +jobs: + push_to_registry: + name: 推送到 Docker Hub + runs-on: ubuntu-latest + + steps: + # https://github.com/actions/checkout + - name: 拉取代码 + uses: actions/checkout@v3 + with: + ref: develop + + # https://github.com/docker/login-action + - name: 登录到 Docker hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + # https://github.com/docker/setup-buildx-action + - name: 使用 buildx 作为构建器 + uses: docker/setup-buildx-action@v2 + + # https://github.com/docker/build-push-action + - name: 构建并推送 + uses: docker/build-push-action@v3 + with: + context: . + file: docker/Dockerfile + push: true + tags: develop + platforms: linux/amd64,linux/arm64 \ No newline at end of file diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index d2dd829..be22cb1 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,7 +3,7 @@ name: 推送 Docker 镜像 # 触发 action 的事件 on: push: - # main 分支有推送时触发 + # master 分支有推送时触发 branches: - 'master' # tag 新建时触发 diff --git a/README.en.md b/README.en.md index 08dedca..549b3c7 100644 --- a/README.en.md +++ b/README.en.md @@ -67,10 +67,5 @@ Both APIs automatically return the respective cross-domain header according to ` [History](https://github.com/mokeyjay/Pixiv-daily-ranking-widget/blob/master/doc/log.en.md) -## 💖 Special Sponsor -Many thanks to Jetbrains for providing me with an open source license for the IDE to complete development on this and other open source projects. - -[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/?from=https://github.com/mokeyjay) - ## 👨‍💻 About author [mokeyjay](https://www.mokeyjay.com), IT and ACG lover diff --git a/README.md b/README.md index 6765099..32d3043 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,5 @@ [历史更新日志](https://github.com/mokeyjay/Pixiv-daily-ranking-widget/blob/master/doc/log.md) -## 💖 特别赞助 -非常感谢 Jetbrains 为我提供的 IDE 开源许可,让我完成此项目和其他开源项目上的开发工作。 - -[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/zh-cn/?from=https://github.com/mokeyjay) - ## 👨‍💻 关于作者 常用 ID [mokeyjay](https://www.mokeyjay.com),热爱 IT 与 ACG 的学渣 \ No newline at end of file