1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-05-06 21:49:33 +02:00

additional logging

This commit is contained in:
Aayush 2024-09-24 21:49:02 -04:00
parent 2d18077219
commit 242068ab54
No known key found for this signature in database
4 changed files with 6 additions and 4 deletions

View file

@ -10,6 +10,7 @@ inputs:
nofallback:
description: "Fail the build if the remote builder is not available; defaults to false"
required: false
default: 'false'
add-hosts:
description: "List of a customs host-to-IP mapping (e.g., docker:10.180.0.1)"
required: false

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -67,7 +67,6 @@ async function getRemoteBuilderAddr(inputs: context.Inputs): Promise<string | nu
core.info(`Using dockerfile path: ${dockerfilePath}`);
}
core.info(`Anvil service: ${client.defaults.baseURL}`);
core.info(`Waiting for Blacksmith builder agent to be ready...`);
const response = await client.post('', payload);
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);
core.info(`Blacksmith builder agent ready after ${elapsedTime} seconds`);
return `tcp://${ec2Instance['instance_ip']}:4242` as string;
} else {
core.info(`Waiting...`);
}
await new Promise(resolve => setTimeout(resolve, 200));
}
await client.post(`/${stateHelper.blacksmithBuildTaskId}/abandon`);
await client.post(`/${taskId}/abandon`);
return null;
} catch (error) {
if (error.response && error.response.status === 404) {