Skip to content

github/workflows: Build x86 + arm64 Yetus images at once#5646

Merged
rene merged 1 commit intolf-edge:masterfrom
rene:fix-yetus-buildondemand
Mar 4, 2026
Merged

github/workflows: Build x86 + arm64 Yetus images at once#5646
rene merged 1 commit intolf-edge:masterfrom
rene:fix-yetus-buildondemand

Conversation

@rene
Copy link
Copy Markdown
Contributor

@rene rene commented Mar 3, 2026

Description

Unfortunately the job matrix cannot be used to build Yetus image because the job that finishes last will overwrite the image pushed to dockerhub. Since only x86 runners are used to build this image, there is no need to complicate the handling of manifests. Instead, we can just build and push both images at once. There are no advantages of the current matrix implementation.

How to test and validate this PR

This PR was tested on my repo: https://github.com/rene/eve/actions/runs/22551285945

Changelog notes

No user-facing changes.

PR Backports

This is a build-on-demand workflow, there is no need to backport.

Checklist

  • I've provided a proper description
  • I've added the proper documentation
  • I've tested my PR on amd64 device
  • I've tested my PR on arm64 device
  • I've written the test verification instructions
  • I've set the proper labels to this PR
  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

Unfortunately the job matrix cannot be used to build Yetus image because
the job that finishes last will overwrite the image pushed to dockerhub.
Since only x86 runners are used to build this image, there is no need to
complicate the handling of manifests. Instead, we can just build and push
both images at once. There are no advantages of the current matrix
implementation.

Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
@rene rene requested review from eriknordmark and europaul March 3, 2026 20:08
@rene rene requested review from deitch and yash-zededa as code owners March 3, 2026 20:08
@github-actions github-actions Bot requested a review from uncleDecart March 3, 2026 20:09
Copy link
Copy Markdown
Contributor

@europaul europaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but tbh I don't understand why they ended up overwriting each other before - those are different architectures... or is it just a quirk of buildx?

@rene
Copy link
Copy Markdown
Contributor Author

rene commented Mar 4, 2026

LGTM, but tbh I don't understand why they ended up overwriting each other before - those are different architectures... or is it just a quirk of buildx?

Both images have the same TAG, so if we don't treat them properly through fat manifests they will overwrite each other.... I think this is the easiest fix, buildx will handle everything and is going to run build in parallel anyways, so definitely we don't need job matrix here....

Copy link
Copy Markdown
Contributor

@eriknordmark eriknordmark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rene rene merged commit 2f99194 into lf-edge:master Mar 4, 2026
18 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.

3 participants