Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
C
ci-templates
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • freedesktop.org
  • ci-templates
  • Issues
  • #19

Closed
Open
Created Nov 12, 2020 by Peter Hutterer@whotMaintainer

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.

cc @jadahl, @bentiss, @daenzer

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None