From db7ce8c83e083bd0a086dbc9855f344eae656306 Mon Sep 17 00:00:00 2001 From: Dimitri Huisman Date: Tue, 1 Nov 2022 15:18:03 +0000 Subject: [PATCH] Login docker.io to prevent rate limiting for pulling images --- .github/workflows/build_test_deploy.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 2f710f4e..93e1214d 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -91,7 +91,7 @@ jobs: ## This job builds the base image. The base image is used by all other images. build-base-image-x64: - name: Build base image + name: Build base image x64 if: inputs.architecture == 'linux/amd64' needs: - targets @@ -119,6 +119,11 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.Docker_Login }} + password: ${{ secrets.Docker_Password }} - name: Helper to convert docker org to lowercase id: string uses: ASzc/change-string-case-action@v2 @@ -142,7 +147,7 @@ jobs: ## This job builds the base image. The base image is used by all other images. build-base-image-arm: - name: Build base image + name: Build base image arm if: inputs.architecture != 'linux/amd64' needs: - targets @@ -170,6 +175,11 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.Docker_Login }} + password: ${{ secrets.Docker_Password }} - name: Helper to convert docker org to lowercase id: string uses: ASzc/change-string-case-action@v2 @@ -227,6 +237,11 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.Docker_Login }} + password: ${{ secrets.Docker_Password }} - name: Helper to convert docker org to lowercase id: string uses: ASzc/change-string-case-action@v2 @@ -285,6 +300,11 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.Docker_Login }} + password: ${{ secrets.Docker_Password }} - name: Helper to convert docker org to lowercase id: string uses: ASzc/change-string-case-action@v2