mirror of
https://github.com/docker/build-push-action.git
synced 2025-03-31 09:16:35 +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`);
|
await client.post(`/${stateHelper.blacksmithBuildTaskId}/abandon`);
|
||||||
return null;
|
return null;
|
||||||
} catch (error) {
|
} 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;
|
return null;
|
||||||
} finally {
|
} finally {
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue