From: Grant Slater Date: Wed, 7 Aug 2024 13:27:41 +0000 (+0100) Subject: Add docker hub login to avoid hub IP limits X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2e5b9ac68893836e35f1ee0b3b7882d8e6b4eb1f?ds=inline Add docker hub login to avoid hub IP limits Docker Hub has download limits. When anonymous these limits are per IP address. We have been hitting the limits when GHA dokken tests download the chef image. https://www.docker.com/increase-rate-limits/ --- diff --git a/.github/workflows/test-kitchen.yml b/.github/workflows/test-kitchen.yml index e36f92849..9102aaf9f 100644 --- a/.github/workflows/test-kitchen.yml +++ b/.github/workflows/test-kitchen.yml @@ -169,6 +169,12 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + if: github.repository == 'openstreetmap/chef' && github.event_name != 'pull_request' - name: Check out code uses: actions/checkout@v4 - name: Setup ruby