chore: upload task sort #97
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 构建 Server 镜像 | |
on: | |
push: | |
branches: [main] | |
paths: [server/**] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: 签出代码 | |
uses: actions/checkout@v4 | |
- name: 安装 QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: 安装 Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: 登录 GitHub 容器镜像服务 | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: misaka-1314 | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: 构建镜像 | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./server/python/api | |
file: ./server/python/api/Dockerfile | |
push: true | |
tags: | | |
ghcr.io/misaka-1314/chaoxing:server | |
labels: | | |
image.source=御坂学习v3 | |
image.author=github.com/Misaka-1314 | |
platforms: linux/amd64 |