Skip to content

Enable multi-arch Docker image publishing (amd64/arm64) in CI#87

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/add-multi-platform-support
Open

Enable multi-arch Docker image publishing (amd64/arm64) in CI#87
Copilot wants to merge 2 commits into
mainfrom
copilot/add-multi-platform-support

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown

Current Docker images were effectively single-arch, causing deployment failures on ARM hosts. This PR updates the image pipeline to publish manifest-based multi-platform images for both main variants.

  • CI workflow: multi-platform build/publish

    • Added Buildx/QEMU setup in .github/workflows/docker-image.yml.
    • Switched image builds to docker/build-push-action@v6 with:
      • platforms: linux/amd64,linux/arm64
      • direct push to both Docker Hub and GHCR.
    • Removed legacy post-build docker push/tag/push steps (single-arch flow).
  • Image variants covered

    • openlistteam/openlist_api_server:latest (+ GHCR equivalent)
    • openlistteam/openlist_api_server:alpine (+ GHCR equivalent)
  • Docs update

    • README container section now explicitly states supported platforms: linux/amd64, linux/arm64.
- uses: docker/build-push-action@v6
  with:
    file: ./Dockerfile
    platforms: linux/amd64,linux/arm64
    push: true
    tags: |
      openlistteam/openlist_api_server:latest
      ghcr.io/openlistteam/openlist_api_server:latest

Copilot AI linked an issue Jun 10, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add multi-platform support for Docker images Enable multi-arch Docker image publishing (amd64/arm64) in CI Jun 10, 2026
Copilot AI requested a review from jyxjjj June 10, 2026 12:58
@jyxjjj jyxjjj marked this pull request as ready for review June 10, 2026 12:59
@jyxjjj jyxjjj requested a review from Copilot June 10, 2026 13:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CI Docker image publishing pipeline to build and push manifest-based multi-architecture images (linux/amd64 + linux/arm64) so deployments work correctly on both x86_64 and ARM hosts.

Changes:

  • Added QEMU + Buildx setup in the Docker image workflow to support multi-platform builds.
  • Switched builds to docker/build-push-action@v6 and pushed multi-arch images directly to Docker Hub and GHCR for both latest and alpine variants.
  • Updated README to explicitly document supported image platforms.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
README.md Documents that the published container images support linux/amd64 and linux/arm64.
.github/workflows/docker-image.yml Builds and publishes multi-arch images to Docker Hub and GHCR using Buildx/QEMU and build-push-action@v6.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Docker Image
openlistteam/openlist_api_server:latest
ghcr.io/openlistteam/openlist_api_server:latest

- name: Build and push Docker Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker 镜像不支持多平台架构

3 participants