Skip to content

Commit

Permalink
清空特别鸣谢;添加 develop 镜像流水线
Browse files Browse the repository at this point in the history
  • Loading branch information
mokeyjay committed Nov 11, 2023
1 parent 931cd7f commit 022da6c
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 11 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 推送 Docker 镜像
# 触发 action 的事件
on:
push:
# main 分支有推送时触发
# master 分支有推送时触发
branches:
- 'master'
# tag 新建时触发
Expand Down
5 changes: 0 additions & 5 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 的学渣

0 comments on commit 022da6c

Please sign in to comment.