Skip to content

Support multi-arch Docker images (ghcr.io + internal)#498

Merged
otrosien merged 1 commit intomasterfrom
github-container-registry
Oct 30, 2025
Merged

Support multi-arch Docker images (ghcr.io + internal)#498
otrosien merged 1 commit intomasterfrom
github-container-registry

Conversation

@otrosien
Copy link
Member

@otrosien otrosien commented Oct 16, 2025

One-line summary

Build MultiArch docker images for ghcr.io and zalando internal repository, mimicking what is done on the skipper repository.

Description

  1. .github/workflows/docker-multiarch.yaml - Complete workflow that:
  • Builds for linux/amd64 and linux/arm64 architectures
  • Replaces alpine as base image for a static image approach
  • Pushes to ghcr.io
  • Includes vulnerability scanning with Trivy
  • Supports multiple triggers (pushes, tags, PRs, manual dispatch)
  • Uses proper authentication with GITHUB_TOKEN
  1. Dockerfile.multiarch - Architecture-aware Dockerfile that copies the correct binary based on target platform

  2. docs/MULTIARCH_BUILD.md - Comprehensive documentation explaining the setup, usage, and troubleshooting

Makefile Updates:

Added new targets for multiarch builds:

  • make build.multiarch - Build binaries for both architectures
  • make build.docker.multiarch - Build multiarch Docker image locally
  • make build.push.multiarch - Build and push multiarch image

Types of Changes

  • New feature (non-breaking change which adds functionality)

@otrosien otrosien requested a review from mikkeloscar as a code owner October 16, 2025 16:31
@otrosien otrosien added the minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call. label Oct 16, 2025
@otrosien otrosien force-pushed the github-container-registry branch 11 times, most recently from d99a892 to 75883b8 Compare October 17, 2025 11:02
@otrosien
Copy link
Member Author

@otrosien otrosien closed this Oct 20, 2025
@otrosien otrosien force-pushed the github-container-registry branch from 0878548 to 60b2ebb Compare October 20, 2025 11:53
Signed-off-by: Oliver Trosien <oliver.trosien@zalando.de>

fix build in github

Signed-off-by: Oliver Trosien <oliver.trosien@zalando.de>
@otrosien otrosien reopened this Oct 22, 2025
@mikkeloscar
Copy link
Collaborator

👍

@otrosien
Copy link
Member Author

👍

@otrosien otrosien merged commit 059bfb2 into master Oct 30, 2025
14 checks passed
@otrosien otrosien deleted the github-container-registry branch October 30, 2025 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants