Skip to content

Comments

Add Docker multi-architecture build documentation and examples#2

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/update-deployment-pipeline
Draft

Add Docker multi-architecture build documentation and examples#2
Copilot wants to merge 5 commits intomainfrom
copilot/update-deployment-pipeline

Conversation

Copy link

Copilot AI commented Jan 30, 2026

References a workflow failure where hard-coded AMD64 package URLs caused ARM64 Docker builds to fail with package architecture (amd64) does not match system (arm64).

Solution Pattern

Use Docker's TARGETARCH build argument for dynamic architecture detection:

ARG TARGETARCH

RUN case "${TARGETARCH}" in \
      amd64) ARCH_SUFFIX="64bit" ;; \
      arm64) ARCH_SUFFIX="arm64" ;; \
      *) echo "Unsupported: ${TARGETARCH}" && exit 1 ;; \
    esac && \
    curl "https://example.com/plugin/ubuntu_${ARCH_SUFFIX}/package.deb" \
      -o "/tmp/package.deb" && \
    dpkg -i "/tmp/package.deb"

Changes

Key Principles

  • Never hard-code architecture in package URLs
  • Always use TARGETARCH for conditional logic
  • Fail explicitly on unsupported architectures
  • Use BuildKit and Buildx for multi-platform support
Original prompt

Reference: https://github.com/xpipe-io/xpipe-webtop/actions/runs/20578223451/job/59099982309


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 30, 2026 15:48
Co-authored-by: jarlungoodoo73 <201750283+jarlungoodoo73@users.noreply.github.com>
Co-authored-by: jarlungoodoo73 <201750283+jarlungoodoo73@users.noreply.github.com>
Co-authored-by: jarlungoodoo73 <201750283+jarlungoodoo73@users.noreply.github.com>
Co-authored-by: jarlungoodoo73 <201750283+jarlungoodoo73@users.noreply.github.com>
Copilot AI changed the title [WIP] Update deployment pipeline for improved efficiency Add Docker multi-architecture build documentation and examples Jan 30, 2026
Copilot AI requested a review from jarlungoodoo73 January 30, 2026 15:54
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.

2 participants