Skip to content

Commit d961a72

Browse files
committed
Add auto-retry
1 parent 0851b2d commit d961a72

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/deploy-pm4.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ jobs:
5959
echo "IMAGE=${{ secrets.REGISTRY_HOST }}/processmaker/enterprise:$RESOLVED_IMAGE_TAG" >> $GITHUB_ENV
6060
- name: Generate image EKS
6161
if: ${{ !contains(github.event.pull_request.body, 'ci:skip-build') }}
62-
run: |
63-
cd pm4-k8s-distribution/images
64-
export CI_RELEASE_BRANCH=$RELEASE_BRANCH
65-
branch=$(echo "${{ env.CI_PACKAGE_BRANCH }}" | sed 's/refs-heads-//g') tag=${{env.IMAGE_TAG}} bash build.k8s-cicd.sh
66-
echo "VERSION=${{ env.IMAGE_TAG }}" >> $GITHUB_ENV
62+
uses: nick-fields/retry@v3
63+
with:
64+
max_attempts: 3
65+
timeout_minutes: 60
66+
command: |
67+
cd pm4-k8s-distribution/images
68+
export CI_RELEASE_BRANCH=$RELEASE_BRANCH
69+
branch=$(echo "${{ env.CI_PACKAGE_BRANCH }}" | sed 's/refs-heads-//g') tag=${{env.IMAGE_TAG}} bash build.k8s-cicd.sh
70+
echo "VERSION=${{ env.IMAGE_TAG }}" >> $GITHUB_ENV
6771
- name: List Images
6872
run: |
6973
docker images

0 commit comments

Comments
 (0)