From a7ba71447c6ed0df9e4513c2c943e735581c6b7f Mon Sep 17 00:00:00 2001 From: DL6ER Date: Mon, 23 Oct 2023 23:16:08 +0200 Subject: [PATCH] Try retry-action Signed-off-by: DL6ER --- .github/workflows/build.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e49d42cb..9f4adf2fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,22 +87,23 @@ jobs: run: ls -l - name: Build and test FTL in ftl-build container (QEMU) - uses: docker/build-push-action@v5.0.0 + uses: Wandalen/wretry.action@v1.3.0 with: - platforms: ${{ matrix.platform }} - # Always load latest container image - pull: true - # Do not push anything - push: false - context: . - target: result - file: .github/Dockerfile - outputs: | - type=tar,dest=build.tar - build-args: | - "CI_ARCH=${{ matrix.platform }}" - "GIT_BRANCH=${{ needs.smoke-tests.outputs.GIT_BRANCH }}" - "GIT_TAG=${{ needs.smoke-tests.outputs.GIT_TAG }}" + attempt_limit: 3 + action: docker/build-push-action@v5.0.0 + with: | + platforms: ${{ matrix.platform }} + pull: true + push: false + context: . + target: result + file: .github/Dockerfile + outputs: | + type=tar,dest=build.tar + build-args: | + "CI_ARCH=${{ matrix.platform }}" + "GIT_BRANCH=${{ needs.smoke-tests.outputs.GIT_BRANCH }}" + "GIT_TAG=${{ needs.smoke-tests.outputs.GIT_TAG }}" - name: List files in current directory run: ls -l