Explorar o código

ci: login to dockerhub to avoid rate limiting

Nicolas Duchon hai 1 ano
pai
achega
f0f71f72f7
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      .github/workflows/test.yml

+ 6 - 0
.github/workflows/test.yml

@@ -36,6 +36,12 @@ jobs:
           pip install -r python-requirements.txt
         working-directory: test/requirements
 
+      - name: Login to DockerHub
+        uses: docker/login-action@v3
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+
       - name: Pull nginx:alpine image
         run: docker pull nginx:alpine