From d98ecc6da412dacdecea819b9c986b4dd4dc915e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Thu, 11 May 2023 08:37:26 +0200 Subject: [PATCH] Configure buildah --retry and --retry-delay to deal with build failures when using cache Suggested in https://github.com/containers/buildah/issues/4777#issuecomment-1542088081 --- .github/workflows/image_build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/image_build.yaml b/.github/workflows/image_build.yaml index 21fd3ab..8b8b0bc 100644 --- a/.github/workflows/image_build.yaml +++ b/.github/workflows/image_build.yaml @@ -79,7 +79,10 @@ jobs: tags: latest ${{ github.sha }} ${{ steps.cleaned_ref_name.outputs.ref_name }} archs: amd64, arm64, arm64, s390x layers: true + # https://github.com/containers/buildah/issues/4777#issuecomment-1542088081 extra-args: | + --retry=100 + --retry-delay=5 --volume=${{ env.CCACHE_DIR }}:/ccache ${{ steps.cache.outputs.cache-from }} ${{ steps.cache.outputs.cache-to }}