mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-07 05:59:31 +02:00
additional logging
This commit is contained in:
parent
2d18077219
commit
242068ab54
4 changed files with 6 additions and 4 deletions
|
@ -10,6 +10,7 @@ inputs:
|
||||||
nofallback:
|
nofallback:
|
||||||
description: "Fail the build if the remote builder is not available; defaults to false"
|
description: "Fail the build if the remote builder is not available; defaults to false"
|
||||||
required: false
|
required: false
|
||||||
|
default: 'false'
|
||||||
add-hosts:
|
add-hosts:
|
||||||
description: "List of a customs host-to-IP mapping (e.g., docker:10.180.0.1)"
|
description: "List of a customs host-to-IP mapping (e.g., docker:10.180.0.1)"
|
||||||
required: false
|
required: false
|
||||||
|
|
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
|
@ -67,7 +67,6 @@ async function getRemoteBuilderAddr(inputs: context.Inputs): Promise<string | nu
|
||||||
core.info(`Using dockerfile path: ${dockerfilePath}`);
|
core.info(`Using dockerfile path: ${dockerfilePath}`);
|
||||||
}
|
}
|
||||||
core.info(`Anvil service: ${client.defaults.baseURL}`);
|
core.info(`Anvil service: ${client.defaults.baseURL}`);
|
||||||
core.info(`Waiting for Blacksmith builder agent to be ready...`);
|
|
||||||
const response = await client.post('', payload);
|
const response = await client.post('', payload);
|
||||||
|
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
|
@ -90,11 +89,13 @@ async function getRemoteBuilderAddr(inputs: context.Inputs): Promise<string | nu
|
||||||
const elapsedTime = ((Date.now() - startTime) / 1000).toFixed(2);
|
const elapsedTime = ((Date.now() - startTime) / 1000).toFixed(2);
|
||||||
core.info(`Blacksmith builder agent ready after ${elapsedTime} seconds`);
|
core.info(`Blacksmith builder agent ready after ${elapsedTime} seconds`);
|
||||||
return `tcp://${ec2Instance['instance_ip']}:4242` as string;
|
return `tcp://${ec2Instance['instance_ip']}:4242` as string;
|
||||||
|
} else {
|
||||||
|
core.info(`Waiting...`);
|
||||||
}
|
}
|
||||||
await new Promise(resolve => setTimeout(resolve, 200));
|
await new Promise(resolve => setTimeout(resolve, 200));
|
||||||
}
|
}
|
||||||
|
|
||||||
await client.post(`/${stateHelper.blacksmithBuildTaskId}/abandon`);
|
await client.post(`/${taskId}/abandon`);
|
||||||
return null;
|
return null;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error.response && error.response.status === 404) {
|
if (error.response && error.response.status === 404) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue