ci: build and publish the CPU container image

The container job published the CUDA, Vulkan, MUSA and SYCL images but never
the CPU one, although docker/Dockerfile exists and the Docker guide starts
from it. Add a cpu variant, published as master-cpu next to the others.

Claude-Session: https://claude.ai/code/session_01EhZzDBkuuMp1jBf4WtEySC
This commit is contained in:
Claude 2026-10-12 16:21:57 +02:00
parent 7000584024
commit 7b0657df43
No known key found for this signature in database

View file

@ -194,7 +194,7 @@ jobs:
strategy:
matrix:
variant: [musa, sycl, vulkan, cuda]
variant: [cpu, musa, sycl, vulkan, cuda]
platform: [linux/amd64]
runner: [ubuntu-latest]
build-args: [""]
@ -269,7 +269,7 @@ jobs:
context: .
platforms: ${{ matrix.platform }}
push: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
file: docker/Dockerfile.${{ matrix.variant }}
file: ${{ matrix.variant == 'cpu' && 'docker/Dockerfile' || format('docker/Dockerfile.{0}', matrix.variant) }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME }}-${{ matrix.variant }}${{ matrix.tag-suffix }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}