]> git.openstreetmap.org Git - chef.git/commitdiff
Add docker hub login to avoid hub IP limits
authorGrant Slater <github@firefishy.com>
Wed, 7 Aug 2024 13:27:41 +0000 (14:27 +0100)
committerGrant <github@firefishy.com>
Wed, 7 Aug 2024 16:10:03 +0000 (17:10 +0100)
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/

.github/workflows/test-kitchen.yml

index e36f92849144d051b450a76ec427be435b0d0e57..9102aaf9f326295885789172a1273dc2eebf9152 100644 (file)
@@ -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