Replies: 1 comment
-
I think this action cant be used with matrix because last image overwrites everything. I moved condition in Dockerfile and set |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am using matrix with platforms to set different
build-args
for each platform. I want to keep that in Github Action and keep Dockerfile agnostic of this. The problem is that the second image gets pushed with"architecture": "unknown"
manifest data even though it's built and pushed successfully.Here is my code, the relevant part:
Here is the complete code:
https://github.com/nemanjam/nemanjam.github.io/blob/main/.github/workflows/default__build-push-docker.yml
And this is the manifest for the pushed images:
Here is the Github Actions log for the missing
x86
image, architecture is set in metadata:https://github.com/nemanjam/nemanjam.github.io/actions/runs/11094437089/job/30821924988
On Docker hub only the second image is visible:
Beta Was this translation helpful? Give feedback.
All reactions