Is it possible to use different image depending on the platform? #3881
-
What would be the best approach to use different image for a step based in the platform? Let's say |
Beta Was this translation helpful? Give feedback.
Answered by
voidcontext
Jul 9, 2024
Replies: 2 comments
-
Actually I think I found a solution, it might not be the best but it seems it works well: matrix:
include:
- platform: linux/amd64
image: some-image
- platform: linux/aarch64
image: aarch64/some-image
labels:
platform: ${platform}
steps:
release:
image: ${image}
settings:
... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
voidcontext
-
Why not use a multi-arch image and let docker care about this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually I think I found a solution, it might not be the best but it seems it works well: