Skip to content

Commit fbf23b6

Browse files
committed
Add noble-testing for kilted beta testing
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
1 parent 1e4ac09 commit fbf23b6

File tree

3 files changed

+39
-19
lines changed

3 files changed

+39
-19
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,27 @@ on:
1010

1111
jobs:
1212
build_ubuntu_docker_image:
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
base_image_name: [ubuntu]
17-
base_image_tag: [focal, jammy, noble]
18-
name: "${{ matrix.base_image_name }}-${{ matrix.base_image_tag }}"
1913
# always use latest linux worker, as it should not have any impact
2014
# when it comes to building docker images.
2115
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
base_image_tag: [ubuntu]
20+
include:
21+
- source_tag: focal
22+
target_tag: focal
23+
ros_version: ros
24+
- source_tag: jammy
25+
target_tag: jammy
26+
ros_version: ros2
27+
- source_tag: noble
28+
target_tag: noble
29+
ros_version: ros2
30+
- source_tag: noble
31+
target_tag: noble-testing
32+
ros_version: ros2-testing
33+
name: "${{ matrix.base_image_name }}-${{ matrix.source_tag }}"
2234
steps:
2335
-
2436
name: Checkout repository
@@ -48,12 +60,13 @@ jobs:
4860
push: ${{ github.event_name != 'pull_request' }}
4961
build-args: |
5062
BASE_IMAGE_NAME=${{ matrix.base_image_name }}
51-
BASE_IMAGE_TAG=${{ matrix.base_image_tag }}
63+
BASE_IMAGE_TAG=${{ matrix.source_tag }}
5264
VCS_REF=${{ github.sha }}
5365
ROS_DISTRO=none
66+
ROS_VERSION=${{ matrix.ros_version }}
5467
tags: |
55-
rostooling/setup-ros-docker:${{ matrix.base_image_name }}-${{ matrix.base_image_tag }}-latest
56-
ghcr.io/ros-tooling/setup-ros-docker/setup-ros-docker-${{ matrix.base_image_name }}-${{ matrix.base_image_tag }}:master
68+
rostooling/setup-ros-docker:${{ matrix.base_image_name }}-${{ matrix.target_tag }}-latest
69+
ghcr.io/ros-tooling/setup-ros-docker/setup-ros-docker-${{ matrix.base_image_name }}-${{ matrix.target_tag }}:master
5770
5871
build_ubuntu_docker_image_ros:
5972
strategy:

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ ARG VCS_REF
2323
# The ROS distribution being targeted by this image
2424
ARG ROS_DISTRO
2525

26+
# Override default APT sources, "ros", "ros2, or "ros2-testing"
27+
ARG ROS_VERISON=''
28+
2629
# Additional APT packages to be installed
2730
#
2831
# This is used to build Docker images incorporating various ROS, or ROS 2

setup-ros.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,21 @@ apt-get install --no-install-recommends --quiet --yes tzdata
3333
update-ca-certificates
3434
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
3535

36-
ROS_VERSION="ros"
3736
RTI_CONNEXT_DDS=""
38-
case ${ROS_DISTRO} in
39-
"noetic")
40-
ROS_VERSION="ros"
41-
;;
42-
*)
43-
RTI_CONNEXT_DDS="rti-connext-dds-6.0.1"
44-
ROS_VERSION="ros2"
45-
;;
46-
esac
37+
38+
if [ -z $ROS_VERSION ]; then
39+
ROS_VERSION='ros2'
40+
case ${ROS_DISTRO} in
41+
"noetic")
42+
ROS_VERSION="ros"
43+
;;
44+
*)
45+
RTI_CONNEXT_DDS="rti-connext-dds-6.0.1"
46+
ROS_VERSION="ros2"
47+
;;
48+
esac
49+
fi
50+
4751
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/${ROS_VERSION}/ubuntu $(lsb_release -sc) main" |\
4852
tee /etc/apt/sources.list.d/${ROS_VERSION}.list > /dev/null
4953

0 commit comments

Comments
 (0)