Skip to content

Commit

Permalink
Enable Docker Hub login to reduce hitting rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
aequitas committed Oct 14, 2024
1 parent cc22273 commit 1db329d
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub to increase rate limit on pulls
# https://github.com/docker/login-action?tab=readme-ov-file#dockerhub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# worst case of this failing is running into Docker Hub rate limit
continue-on-error: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -302,6 +311,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub to increase rate limit on pulls
# https://github.com/docker/login-action?tab=readme-ov-file#dockerhub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# worst case of this failing is running into Docker Hub rate limit
continue-on-error: true

- name: Download images from artifacts (for forked PR's or dependabot)
# trigger only for forked PR's that don't have permissions to push to the container registry
if: ${{ env.use_registry == 'false' }}
Expand Down Expand Up @@ -391,6 +409,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub to increase rate limit on pulls
# https://github.com/docker/login-action?tab=readme-ov-file#dockerhub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# worst case of this failing is running into Docker Hub rate limit
continue-on-error: true

- name: Download images from artifacts (for forked PR's or dependabot)
# trigger only for forked PR's that don't have permissions to push to the container registry
if: ${{ env.use_registry == 'false' }}
Expand Down Expand Up @@ -451,6 +478,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub to increase rate limit on pulls
# https://github.com/docker/login-action?tab=readme-ov-file#dockerhub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# worst case of this failing is running into Docker Hub rate limit
continue-on-error: true

- name: Download images from artifacts (for forked PR's or dependabot)
# trigger only for forked PR's that don't have permissions to push to the container registry
if: ${{ env.use_registry == 'false' }}
Expand Down Expand Up @@ -525,6 +561,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub to increase rate limit on pulls
# https://github.com/docker/login-action?tab=readme-ov-file#dockerhub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# worst case of this failing is running into Docker Hub rate limit
continue-on-error: true

- name: Download images from artifacts (for forked PR's or dependabot)
# trigger only for forked PR's that don't have permissions to push to the container registry
if: ${{ env.use_registry == 'false' }}
Expand Down Expand Up @@ -636,6 +681,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub to increase rate limit on pulls
# https://github.com/docker/login-action?tab=readme-ov-file#dockerhub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# worst case of this failing is running into Docker Hub rate limit
continue-on-error: true

- name: Download images from artifacts (for forked PR's or dependabot)
# trigger only for forked PR's that don't have permissions to push to the container registry
if: ${{ env.use_registry == 'false' }}
Expand Down

0 comments on commit 1db329d

Please sign in to comment.