mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-06 21:49:33 +02:00
only retry build task submission on ephemeral server errors (#11)
This commit is contained in:
parent
2fe866cc23
commit
9c81a9e3dd
3 changed files with 5 additions and 2 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -118,6 +118,9 @@ async function getRemoteBuilderAddr(inputs: context.Inputs): Promise<string | nu
|
|||
response = await client.post('', payload);
|
||||
break;
|
||||
} catch (error) {
|
||||
if (error.response && error.response.status < 500) {
|
||||
throw error;
|
||||
}
|
||||
if (retries === maxRetries - 1) {
|
||||
throw error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue