Skip to content

Commit f6bbf45

Browse files
committed
Added retries of up to 3 attempts for a failed Docker image.
1 parent 9a22a06 commit f6bbf45

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

.github/actions/codeception/action.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ runs:
3737
shell: bash
3838

3939
- name: Build test environment
40-
run: composer run docker:build
41-
shell: bash
42-
working-directory: ${{ inputs.working-directory }}
40+
uses: nick-invision/retry@v2
41+
with:
42+
timeout_minutes: 10
43+
max_attempts: 3
44+
retry_on: error
45+
command: composer run docker:build
46+
shell: bash
47+
working-directory: ${{ inputs.working-directory }}
4348
env:
4449
WP_VERSION: ${{ inputs.wordpress }}
4550
PHP_VERSION: ${{ inputs.php }}

plugins/hwp-previews/.docker/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ ARG PHP_VERSION
1717
ENV WP_VERSION=${WP_VERSION}
1818
ENV PHP_VERSION=${PHP_VERSION}
1919

20-
LABEL author=axepress
21-
LABEL author_uri=https://github.com/AxeWP
22-
2320
SHELL [ "/bin/bash", "-c" ]
2421

2522
# Install required packages

plugins/hwp-previews/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"codeception/module-phpbrowser": "^1.0",
3131
"codeception/module-rest": "^2.0",
3232
"codeception/module-webdriver": "^1.0",
33-
"codeception/phpunit-wrapper": "^9.0",
3433
"codeception/util-universalframework": "^1.0",
3534
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
3635
"humanmade/psalm-plugin-wordpress": "^3.1",

plugins/hwp-previews/composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)