feat(docker): add QEMU and Buildx setup for multi-platform builds

This commit is contained in:
shiyu
2025-06-02 10:53:10 +08:00
parent 3160d0c094
commit d015701078

View File

@@ -3,8 +3,8 @@ name: Build and Push Docker image
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
- 'v*.*.*'
workflow_dispatch:
jobs:
build-and-push:
@@ -17,6 +17,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
- name: Lowercase repo name
run: echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV