Skip to content

Add architecture-specific build parameter overrides to multiarch workflow#1

Merged
alexfricker merged 9 commits into
mainfrom
copilot/add-reusable-github-actions
Feb 1, 2026
Merged

Add architecture-specific build parameter overrides to multiarch workflow#1
alexfricker merged 9 commits into
mainfrom
copilot/add-reusable-github-actions

Conversation

Copilot AI commented Feb 1, 2026

Copy link
Copy Markdown

The multiarch workflow forced identical Dockerfile/context/build_args for both ARM and AMD builds. This prevents architecture-specific optimizations like different base images, compiler flags, or build contexts.

Changes

New optional inputs with fallback logic:

  • arm_dockerfile_path, arm_context, arm_build_args - ARM-specific overrides
  • amd_dockerfile_path, amd_context, amd_build_args - AMD-specific overrides

Implementation:

dockerfile_path: ${{ inputs.arm_dockerfile_path != '' && inputs.arm_dockerfile_path || inputs.dockerfile_path }}

Each architecture-specific parameter falls back to the common parameter when empty, maintaining backward compatibility.

Documentation:

  • Added architecture-specific inputs section with parameter table
  • Example demonstrating different Dockerfiles per architecture

Usage

jobs:
  build-multiarch:
    uses: ./.github/workflows/build-multiarch-image.yml@main
    with:
      image_name: myorg/myapp
      # ARM builds with NEON optimizations
      arm_dockerfile_path: ./Dockerfile.arm64
      arm_build_args: OPTIMIZATION=neon
      # AMD builds with AVX2 optimizations  
      amd_dockerfile_path: ./Dockerfile.amd64
      amd_build_args: OPTIMIZATION=avx2
      push: true

Existing workflows continue working without modification.

Original prompt

I would like to generate a repository with reusable github action workflows - "build ARM image", "build AMD" image", "build mulitarch image" placeholder actions will work, as well as a README.md that explains how to use the actions in a workflow


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 1, 2026 21:45
…ge builds

Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Copilot AI changed the title [WIP] Add reusable GitHub Action workflows for building images Add reusable workflows for ARM, AMD, and multiarch Docker image builds Feb 1, 2026
Copilot AI requested a review from alexfricker February 1, 2026 21:48
Copilot AI and others added 2 commits February 1, 2026 21:55
Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
…ation

Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Copilot AI changed the title Add reusable workflows for ARM, AMD, and multiarch Docker image builds Replace QEMU cross-compilation with native self-hosted runner builds Feb 1, 2026
Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Copilot AI changed the title Replace QEMU cross-compilation with native self-hosted runner builds Add logging to clarify multiarch manifest uses build outputs Feb 1, 2026
Copilot AI and others added 2 commits February 1, 2026 22:29
Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Co-authored-by: alexfricker <67075196+alexfricker@users.noreply.github.com>
Copilot AI changed the title Add logging to clarify multiarch manifest uses build outputs Add architecture-specific build parameter overrides to multiarch workflow Feb 1, 2026
@alexfricker alexfricker marked this pull request as ready for review February 1, 2026 22:33
@alexfricker alexfricker merged commit ff6dd47 into main Feb 1, 2026
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