Skip to content

Commit b8a6054

Browse files
committed
Adding retry to deploys [deploy]
1 parent b80a9ea commit b8a6054

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,29 @@ jobs:
6161
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
6262
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
6363
- name: Deploy new images
64-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
64+
uses: nick-invision/retry@v2
65+
with:
66+
timeout_minutes: 10
67+
max_attempts: 3
68+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
6569
- name: Tag images as latest
66-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make tag_latest
70+
uses: nick-invision/retry@v2
71+
with:
72+
timeout_minutes: 10
73+
max_attempts: 3
74+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make tag_latest
6775
- name: Deploy latest tag
68-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
76+
uses: nick-invision/retry@v2
77+
with:
78+
timeout_minutes: 10
79+
max_attempts: 3
80+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
6981
- name: Tag browser images
70-
run: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} PUSH_IMAGE=true make tag_and_push_browser_images
82+
uses: nick-invision/retry@v2
83+
with:
84+
timeout_minutes: 10
85+
max_attempts: 3
86+
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} PUSH_IMAGE=true make tag_and_push_browser_images
7187
- name: Create release notes (release_notes.md)
7288
run: ./generate_release_notes.sh ${LATEST_TAG} origin/trunk ${GRID_VERSION} ${BUILD_DATE}
7389
- name: Create Release

0 commit comments

Comments
 (0)