Skip to content

build: pass all platforms at once to docker/build-push-action#3

Merged
jbw976 merged 1 commit intocrossplane:mainfrom
jbw976:multi-platform
Apr 17, 2025
Merged

build: pass all platforms at once to docker/build-push-action#3
jbw976 merged 1 commit intocrossplane:mainfrom
jbw976:multi-platform

Conversation

@jbw976
Copy link
Member

@jbw976 jbw976 commented Apr 17, 2025

Description of your changes

It looks like we are not doing multi platform builds correctly right now. For example, see the manifest at https://explore.ggcr.dev/?image=xpkg.crossplane.io%2Fcrossplane%2Fchangelogs-sidecar%3Av0.0.0-20250417151805-235afa6d306d, which does not have entries for both amd64 and arm64.

The current approach is to have a matrix of architectures that each run build/push, but I think after looking at documentation like https://docs.docker.com/build/ci/github-actions/multi-platform/, we should just be passing those multiple platforms directly to the docker/build-push-action and let it work on them all at once.

I have:

Signed-off-by: Jared Watts <jbw976@gmail.com>
@jbw976 jbw976 merged commit 56fb76b into crossplane:main Apr 17, 2025
4 checks passed
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.

1 participant