mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-06 21:49:33 +02:00
log abandonment url
This commit is contained in:
parent
b15cec1fbd
commit
2b966d15c9
3 changed files with 5 additions and 3 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
|
@ -46,7 +46,9 @@ async function reportBuildCompleted() {
|
||||||
async function reportBuildAbandoned() {
|
async function reportBuildAbandoned() {
|
||||||
try {
|
try {
|
||||||
const client = await getBlacksmithHttpClient();
|
const client = await getBlacksmithHttpClient();
|
||||||
const response = await client.post(`/${stateHelper.blacksmithBuildTaskId}/abandon`);
|
const abandonURL = `/${stateHelper.blacksmithBuildTaskId}/abandon`;
|
||||||
|
core.info(`Abandoning Blacksmith build: ${abandonURL}`);
|
||||||
|
const response = await client.post(abandonURL);
|
||||||
core.info(`Docker build abandoned, tearing down Blacksmith builder for ${stateHelper.blacksmithBuildTaskId}: ${JSON.stringify(response.data)}`);
|
core.info(`Docker build abandoned, tearing down Blacksmith builder for ${stateHelper.blacksmithBuildTaskId}: ${JSON.stringify(response.data)}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning('Error abandoning Blacksmith build:', error);
|
core.warning('Error abandoning Blacksmith build:', error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue