Skip to content

Commit 7501f75

Browse files
CopilotHaydnspass
andcommitted
Use matrix strategy to test both Ubuntu 22.04 and 24.04 configurations
Co-authored-by: Haydnspass <16120273+Haydnspass@users.noreply.github.com>
1 parent 49016f4 commit 7501f75

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/docker.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ on:
99
jobs:
1010
docker:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
include:
15+
- ubuntu_version: "22.04"
16+
cuda_version: "12.4.1"
17+
ros_distro: "humble"
18+
- ubuntu_version: "24.04"
19+
cuda_version: "13.1.0"
20+
ros_distro: "jazzy"
1221
steps:
1322
- name: Login to GitHub Container Registry
1423
uses: docker/login-action@v3
@@ -29,10 +38,10 @@ jobs:
2938
platforms: linux/amd64
3039
file: .docker/Dockerfile
3140
build-args: |
32-
UBUNTU_VERSION=24.04
33-
CUDA_VERSION=13.1.0
34-
ROS_DISTRO=jazzy
41+
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
42+
CUDA_VERSION=${{ matrix.cuda_version }}
43+
ROS_DISTRO=${{ matrix.ros_distro }}
3544
push: ${{ github.ref == 'refs/heads/main' }}
3645
tags: |
37-
roboreg:latest
38-
ghcr.io/lbr-stack/roboreg:latest
46+
roboreg:${{ matrix.ubuntu_version }}
47+
ghcr.io/lbr-stack/roboreg:${{ matrix.ubuntu_version }}

0 commit comments

Comments
 (0)