Skip to content

Commit d110dda

Browse files
committed
ci: use retry for playwright docker image pulls
1 parent 67a3d1f commit d110dda

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: node-js
1414
runs-on: ubuntu-24.04
1515

16-
16+
1717
steps:
1818
- uses: actions/checkout@v6.0.2
1919

.github/workflows/playwright.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ jobs:
9090
large-packages: false
9191
tool-cache: true
9292

93-
- name: Pull latest Docker images
94-
run: |
95-
./src/docker/pull.sh --no-debug
93+
- uses: nick-fields/retry@v3
94+
with:
95+
max_attempts: 5
96+
timeout_minutes: 10
97+
command: ./src/docker/pull.sh --no-debug
9698

9799
- name: Install
98100
uses: pnpm/action-setup@v5
@@ -227,10 +229,13 @@ jobs:
227229
- name: Free Disk Space (Ubuntu)
228230
uses: jlumbroso/free-disk-space@main
229231

230-
- name: Pull latest Docker images
232+
- uses: nick-fields/retry@v3
231233
working-directory: ./
232-
run: |
233-
./src/docker/pull.sh --no-debug
234+
name: Pull latest Docker images
235+
with:
236+
max_attempts: 5
237+
timeout_minutes: 10
238+
command: ./src/docker/pull.sh --no-debug
234239

235240
- uses: actions/setup-node@v6
236241
with:

0 commit comments

Comments
 (0)