From 3f9b0d9a47b326d1d16e40e8975464c6a8e0de95 Mon Sep 17 00:00:00 2001 From: Roman Vaseev <4833306+Filter94@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:06:50 +0200 Subject: [PATCH] Fixing dockerhub rate limiting issue on CI (#153) * Changing sequence of dockerhub login and QEMU setup * Adding docker login to Coordinator tests as well * Moved with declaration to Login to Docker Hub as well * Updating docker action version * Updating docker login actions from v1 and v2 to v3 * Updating qemu action as well --- .github/workflows/all-tools.yml | 2 +- .github/workflows/bridge-ui-publish.yml | 4 ++-- .github/workflows/cache-docker-images.yml | 2 +- .github/workflows/coordinator-build-and-publish.yml | 12 ++++++------ .github/workflows/coordinator-testing.yml | 5 +++++ .github/workflows/postman-build-and-publish.yml | 6 +++--- .github/workflows/prover-build-and-publish.yml | 4 ++-- .github/workflows/reuse-run-e2e-tests.yml | 2 +- .../workflows/reuse-tag-without-untested-suffix.yml | 2 +- .../traces-api-facade-build-and-publish.yml | 12 ++++++------ 10 files changed, 28 insertions(+), 23 deletions(-) diff --git a/.github/workflows/all-tools.yml b/.github/workflows/all-tools.yml index 6b9ea3742..d5adfd576 100644 --- a/.github/workflows/all-tools.yml +++ b/.github/workflows/all-tools.yml @@ -97,7 +97,7 @@ jobs: submodules: true persist-credentials: false - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/bridge-ui-publish.yml b/.github/workflows/bridge-ui-publish.yml index 1f8bc68d0..fd0f2975e 100644 --- a/.github/workflows/bridge-ui-publish.yml +++ b/.github/workflows/bridge-ui-publish.yml @@ -31,13 +31,13 @@ jobs: run: echo "DOCKER_TAG=${GITHUB_SHA:0:7}-$(date +%s)-bridge-ui-${{ steps.package-version.outputs.current-version }}" | tee $GITHUB_ENV - name: Login to Docker Repository - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Docker Image Build and Publish id: docker-build-publish diff --git a/.github/workflows/cache-docker-images.yml b/.github/workflows/cache-docker-images.yml index 8437cb40a..4c8658737 100644 --- a/.github/workflows/cache-docker-images.yml +++ b/.github/workflows/cache-docker-images.yml @@ -36,7 +36,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/coordinator-build-and-publish.yml b/.github/workflows/coordinator-build-and-publish.yml index 12f4f2173..cdb77222a 100644 --- a/.github/workflows/coordinator-build-and-publish.yml +++ b/.github/workflows/coordinator-build-and-publish.yml @@ -54,17 +54,17 @@ jobs: - name: Build dist run: | ./gradlew coordinator:app:distZip --no-daemon - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 - name: Docker meta id: coordinator uses: docker/metadata-action@v3 diff --git a/.github/workflows/coordinator-testing.yml b/.github/workflows/coordinator-testing.yml index 2915a909a..578966eb1 100644 --- a/.github/workflows/coordinator-testing.yml +++ b/.github/workflows/coordinator-testing.yml @@ -51,6 +51,11 @@ jobs: - name: Build coordinator and Unit tests run: | ./gradlew -V coordinator:app:buildNeeded + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run integration tests run: | ./gradlew integrationTest diff --git a/.github/workflows/postman-build-and-publish.yml b/.github/workflows/postman-build-and-publish.yml index 18a9d173d..4cf1da79c 100644 --- a/.github/workflows/postman-build-and-publish.yml +++ b/.github/workflows/postman-build-and-publish.yml @@ -49,16 +49,16 @@ jobs: submodules: true persist-credentials: false - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: 'arm64,arm' - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Show the "version" build argument run: | echo "We inject the commit tag in the docker image ${{ env.COMMIT_TAG }}" diff --git a/.github/workflows/prover-build-and-publish.yml b/.github/workflows/prover-build-and-publish.yml index e8ada5ec0..645f579b8 100644 --- a/.github/workflows/prover-build-and-publish.yml +++ b/.github/workflows/prover-build-and-publish.yml @@ -52,12 +52,12 @@ jobs: submodules: true persist-credentials: false - name: Login to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Show the "version" build argument run: | echo "We inject the commit tag in the docker image ${{ env.COMMIT_TAG }}" diff --git a/.github/workflows/reuse-run-e2e-tests.yml b/.github/workflows/reuse-run-e2e-tests.yml index 42c91237e..4d4e9d899 100644 --- a/.github/workflows/reuse-run-e2e-tests.yml +++ b/.github/workflows/reuse-run-e2e-tests.yml @@ -89,7 +89,7 @@ jobs: pnpm-install-options: '--frozen-lockfile --prefer-offline' - name: Login to Docker Hub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/reuse-tag-without-untested-suffix.yml b/.github/workflows/reuse-tag-without-untested-suffix.yml index 32acf05d1..7f3cd38bc 100644 --- a/.github/workflows/reuse-tag-without-untested-suffix.yml +++ b/.github/workflows/reuse-tag-without-untested-suffix.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Login to Docker Hub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/traces-api-facade-build-and-publish.yml b/.github/workflows/traces-api-facade-build-and-publish.yml index 68df2ce62..0c3a21e5a 100644 --- a/.github/workflows/traces-api-facade-build-and-publish.yml +++ b/.github/workflows/traces-api-facade-build-and-publish.yml @@ -57,17 +57,17 @@ jobs: run: | ./gradlew traces-api-facade:app:shadowJar echo ${{ github.workspace }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.event_name != 'pull_request' - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v3 - name: Docker meta id: traces-api-facade uses: docker/metadata-action@v3