From 2e5b9ac68893836e35f1ee0b3b7882d8e6b4eb1f Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 7 Aug 2024 14:27:41 +0100 Subject: [PATCH] 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/ --- .github/workflows/test-kitchen.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5