mirror of https://github.com/Mai-with-u/MaiBot.git
Update docker-image.yml
parent
8411bb13dd
commit
b953a1f4d6
|
|
@ -13,6 +13,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|
@ -25,6 +28,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: . # Docker构建上下文路径
|
context: . # Docker构建上下文路径
|
||||||
file: ./Dockerfile # Dockerfile路径
|
file: ./Dockerfile # Dockerfile路径
|
||||||
|
platforms: linux/amd64,linux/arm64 # 支持arm架构
|
||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }}
|
${{ secrets.DOCKERHUB_USERNAME }}/maimbot:${{ github.ref_name }}
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest
|
${{ secrets.DOCKERHUB_USERNAME }}/maimbot:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue