Skip to content

Commit c775781

Browse files
authored
Add docker login step to avoid rate limiting (#4140)
* Add docker login step to avoid rate limiting * TEMP: test credentials before merging * Only login on production runners
1 parent 44debfa commit c775781

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
with:
6969
platforms: arm64
7070

71+
- name: Login to Docker Hub
72+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
73+
with:
74+
username: ${{ secrets.DOCKER_USERNAME }}
75+
password: ${{ secrets.DOCKER_PASSWORD }}
76+
if: ${{ inputs.runner == 'ubuntu-24.04-amd64' }}
77+
7178
- name: Login to GitHub Container Registry
7279
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
7380
if: ${{ github.event_name != 'pull_request' && ! contains(inputs.image, 'plus') }}

0 commit comments

Comments
 (0)