Arch-specific templates in distribution-image and suffixed-image?
As pointed out by @daenzer in !47 (comment 688356)
We have arch-specific container-build
and qemu-build
templates now, with aliases for the non-suffixed ones pointing to the x86_64
ones. But our distribution-image
and suffixed-image
templates don't have any arch-specific versions. What's the plan there?
The only thing those templates right now would do is to add tags: [ aarch64]
.
But that brings up another issue: the arch is only used for the buildah
image but not encoded in the resulting image. So two container-build
templates with different suffixes will end up pushing the same image to the registry - it falls on the user to distinguish those too by changing the tag or using a suffix.
So the most obvious use-case doesn't work properly:
.fedora:
FDO_DISTRIBUTION_PACKAGES: '....'
FDO_DISTRIBUTION_TAG: '2020-11-11.0'
FDO_DISTRIBUTION_VERSION: '33'
build f33 x86:
extends:
- .fedora
- .fdo.container-build@fedora@x86_64
build f33 arm:
extends:
- .fedora
- .fdo.container-build@fedora@aarch6
run f33:
extends:
- .fedora
- .fdo.distribution-image@fedora
script:
- echo "I don't know which image I'm running on"
I think we need to encode the arch in the image name.