Skip to content

Commit e720cd1

Browse files
committed
different auth method
1 parent 33fab13 commit e720cd1

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

.github/workflows/debian-packages.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ jobs:
5959
runs-on: ubuntu-latest
6060
needs: [determine-distros]
6161
if: always() && (needs.check-tests.result == 'success' || needs.check-tests.result == 'skipped')
62-
container: ros:${{ matrix.ros_distro }}-ros-base-${{ matrix.ubuntu_distro }}
62+
container:
63+
image: ros:${{ matrix.ros_distro }}-ros-base-${{ matrix.ubuntu_distro }}
64+
credentials:
65+
username: ${{ secrets.DOCKERHUB_USERNAME }}
66+
password: ${{ secrets.DOCKERHUB_TOKEN }}
6367

6468
strategy:
6569
fail-fast: false
@@ -78,12 +82,6 @@ jobs:
7882
ubuntu_distro: noble
7983

8084
steps:
81-
- name: Login to Docker Hub
82-
uses: docker/login-action@v3
83-
with:
84-
username: ${{ secrets.DOCKERHUB_USERNAME }}
85-
password: ${{ secrets.DOCKERHUB_TOKEN }}
86-
8785
- name: Checkout code
8886
uses: actions/checkout@v4
8987
with:

.github/workflows/ros-tests.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ jobs:
1414
test:
1515
name: Test ROS2 ${{ matrix.ros_distro }}
1616
runs-on: ubuntu-latest
17-
container: ros:${{ matrix.ros_distro }}-ros-base-${{ matrix.ubuntu_distro }}
17+
container:
18+
image: ros:${{ matrix.ros_distro }}-ros-base-${{ matrix.ubuntu_distro }}
19+
credentials:
20+
username: ${{ secrets.DOCKERHUB_USERNAME }}
21+
password: ${{ secrets.DOCKERHUB_TOKEN }}
1822

1923
strategy:
2024
fail-fast: false
@@ -32,12 +36,6 @@ jobs:
3236
ubuntu_distro: noble
3337

3438
steps:
35-
- name: Login to Docker Hub
36-
uses: docker/login-action@v3
37-
with:
38-
username: ${{ secrets.DOCKERHUB_USERNAME }}
39-
password: ${{ secrets.DOCKERHUB_TOKEN }}
40-
4139
- name: Checkout code
4240
uses: actions/checkout@v4
4341
with:

.github/workflows/smoke-tests.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ jobs:
4040
name: Smoke test ROS2 ${{ matrix.ros_distro }}
4141
runs-on: ubuntu-latest
4242
needs: [determine-distros]
43-
container: ros:${{ matrix.ros_distro }}-ros-base-${{ matrix.ubuntu_distro }}
43+
container:
44+
image: ros:${{ matrix.ros_distro }}-ros-base-${{ matrix.ubuntu_distro }}
45+
credentials:
46+
username: ${{ secrets.DOCKERHUB_USERNAME }}
47+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4448

4549
strategy:
4650
fail-fast: false
@@ -59,12 +63,6 @@ jobs:
5963
ubuntu_distro: noble
6064

6165
steps:
62-
- name: Login to Docker Hub
63-
uses: docker/login-action@v3
64-
with:
65-
username: ${{ secrets.DOCKERHUB_USERNAME }}
66-
password: ${{ secrets.DOCKERHUB_TOKEN }}
67-
6866
- name: Setup environment
6967
run: |
7068
apt-get update -qq

0 commit comments

Comments
 (0)