-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (42 loc) · 1.25 KB
/
docker.yaml
File metadata and controls
47 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: docker
on:
push:
branches:
- main
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ubuntu_version: "22.04"
cuda_version: "12.4.1"
ros_distro: "humble"
- ubuntu_version: "24.04"
cuda_version: "13.1.0"
ros_distro: "jazzy"
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
file: .docker/Dockerfile
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
CUDA_VERSION=${{ matrix.cuda_version }}
ROS_DISTRO=${{ matrix.ros_distro }}
push: ${{ github.ref == 'refs/heads/main' }}
tags: |
roboreg:${{ matrix.ubuntu_version }}
ghcr.io/lbr-stack/roboreg:${{ matrix.ubuntu_version }}