Hi there I am trying to turn this github-action i...
# general
c
Hi there I am trying to turn this github-action into a BUILD equivalent to build docker images
Copy code
strategy:
      matrix:
        python_version:
          - '3.11'
          - '3.12'
        cuda_version:
          - '12.4.1-cudnn'
          - '12.5.1-cudnn'
        image_type:
          - runtime
          - devel
    uses: XXXXXXX/.github/workflows/build-docker-image.yaml@v8
    with:
      dockerfile: base/nvidia/Dockerfile
      images: XXXXXXX/${{ github.event.repository.name }}/cuda-${{matrix.image_type}}-${{ matrix.cuda_version }}-${{ matrix.python_version }}
      context: base/nvidia
      build-args: |
        PYTHON_VERSION=${{ matrix.python_version }}
        CUDA_VERSION=${{ matrix.cuda_version }}
        TYPE=${{matrix.image_type}}
So far I have been unsuccessful to use parametrize to cover this case
Copy code
docker_image(
    extra_build_args=parametrize(runtime=["TYPE=runtime"], devel=["TYPE=devel"])
)
how can I solve it? I would need a cartesian of 3 different build args
PYTHON_VERSION=${{ matrix.python_version }} CUDA_VERSION=${{ matrix.cuda_version }} TYPE=${{matrix.image_type}}