浏览代码

ci: login to dockerhub to avoid rate limiting

Nicolas Duchon 1 年之前
父节点
当前提交
f0f71f72f7
共有 1 个文件被更改,包括 6 次插入0 次删除
  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