From b663cabd96b69eaabe048de8980a954bb2a64644 Mon Sep 17 00:00:00 2001 From: Tamir Kamara <26870601+tamirkamara@users.noreply.github.com> Date: Wed, 27 Jul 2022 13:03:50 +0300 Subject: [PATCH] CI retries bundle build & publish commands (#2366) --- .github/workflows/deploy_tre_reusable.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_tre_reusable.yml b/.github/workflows/deploy_tre_reusable.yml index 6b27841f4a..192bb06183 100644 --- a/.github/workflows/deploy_tre_reusable.yml +++ b/.github/workflows/deploy_tre_reusable.yml @@ -410,7 +410,9 @@ jobs: uses: ./.github/actions/devcontainer_run_command with: # Although porter publish will build automatically, our makefile build target includes logic that should run - COMMAND: "make bundle-build bundle-publish DIR=${{ matrix.BUNDLE_DIR }}" + COMMAND: >- + for i in {1..3}; do make bundle-build bundle-publish DIR=${{ matrix.BUNDLE_DIR }} + && break || sleep 30; done ACTIONS_ACR_NAME: ${{ secrets.ACTIONS_ACR_NAME }} ACTIONS_ACR_URI: ${{ secrets.ACTIONS_ACR_URI }} ACTIONS_ACR_PASSWORD: ${{ secrets.ACTIONS_ACR_PASSWORD }} @@ -448,7 +450,9 @@ jobs: uses: ./.github/actions/devcontainer_run_command with: # Although porter publish will build automatically, our makefile build target includes logic that should run - COMMAND: "make bundle-build bundle-publish DIR=${{ matrix.BUNDLE_DIR }}" + COMMAND: >- + for i in {1..3}; do make bundle-build bundle-publish DIR=${{ matrix.BUNDLE_DIR }} + && break || sleep 30; done ACTIONS_ACR_NAME: ${{ secrets.ACTIONS_ACR_NAME }} ACTIONS_ACR_URI: ${{ secrets.ACTIONS_ACR_URI }} ACTIONS_ACR_PASSWORD: ${{ secrets.ACTIONS_ACR_PASSWORD }}