Skip to content

Commit c506cdb

Browse files
authored
fix(docker-build-and-push-cuda): install apt version of vcstool (#6187)
Signed-off-by: M. Fatih Cırıt <mfc@autoware.org>
1 parent 9fff403 commit c506cdb

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/actions/docker-build-and-push-cuda/action.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ runs:
2222
- name: Install jq and vcstool
2323
run: |
2424
sudo apt-get -y update
25-
sudo apt-get -y install jq python3-pip
26-
pip install --no-cache-dir vcstool
25+
sudo apt-get -y install curl gnupg lsb-release
26+
27+
# Add the ROS 2 GPG key and repository
28+
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
29+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | \
30+
sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
31+
32+
sudo apt-get update
33+
sudo apt-get install -y jq python3-pip python3-vcstool
2734
shell: bash
2835

2936
- name: Run vcs import

0 commit comments

Comments
 (0)