mirror of
https://github.com/docker/build-push-action.git
synced 2025-03-28 16:21:01 +00:00
log specific warning when no builder instances are available (#2)
This commit is contained in:
parent
c2b089ee1e
commit
79167f5d18
1 changed files with 5 additions and 1 deletions
|
@ -95,7 +95,11 @@ async function getRemoteBuilderAddr(inputs: context.Inputs): Promise<string | nu
|
|||
await client.post(`/${stateHelper.blacksmithBuildTaskId}/abandon`);
|
||||
return null;
|
||||
} catch (error) {
|
||||
core.warning(`Error in getBuildkitdAddr: ${error.message}`);
|
||||
if (error.response && error.response.status === 404) {
|
||||
core.warning('No builder instances were available, falling back to a local build');
|
||||
} else {
|
||||
core.warning(`Error in getBuildkitdAddr: ${error.message}`);
|
||||
}
|
||||
return null;
|
||||
} finally {
|
||||
clearTimeout(timeoutId);
|
||||
|
|
Loading…
Add table
Reference in a new issue