From a0341844777498f57469b589b827767e32473f12 Mon Sep 17 00:00:00 2001 From: Victor Pellan Date: Fri, 15 Nov 2024 15:24:15 +0100 Subject: [PATCH] Fix CI flakiness by adding dockerhub login --- .github/workflows/system-tests.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index 77e8c459f1..79ab0da54e 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -36,6 +36,11 @@ jobs: repository: 'DataDog/system-tests' ref: ${{ env.SYSTEM_TESTS_REF }} persist-credentials: false + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Pull released image run: | if docker pull ${{ env.REPO }}/system-tests/${{ matrix.image.name }}:latest; then @@ -131,6 +136,11 @@ jobs: echo "FORCED_TESTS_LIST<> $GITHUB_OUTPUT echo "$(cat binaries/dd-trace-rb/.github/forced-tests-list.json)" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Pull released image run: | if docker pull ${{ env.REPO }}/system-tests/${{ matrix.library.name }}/${{ matrix.image }}-${{ matrix.app }}:latest; then @@ -285,6 +295,11 @@ jobs: repository: 'DataDog/system-tests' ref: ${{ env.SYSTEM_TESTS_REF }} persist-credentials: false + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Pull runner image run: | docker pull ${{ env.REPO }}/system-tests/runner:gha${{ github.run_id }}-g${{ github.sha }}