mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-28 20:24:13 +00:00
adds cleanup in post
This commit is contained in:
parent
f056037c0e
commit
b9eaa00132
4 changed files with 11 additions and 44 deletions
|
@ -21,6 +21,8 @@ import {WarpBuildRemoteBuilders} from './warpbuild';
|
|||
|
||||
import * as context from './context';
|
||||
|
||||
let remoteBuilders: WarpBuildRemoteBuilders;
|
||||
|
||||
actionsToolkit.run(
|
||||
// main
|
||||
async () => {
|
||||
|
@ -32,7 +34,7 @@ actionsToolkit.run(
|
|||
const toolkit = new Toolkit();
|
||||
const parsedTimeout = parseInt(inputs.timeout);
|
||||
|
||||
const remoteBuilders = new WarpBuildRemoteBuilders({
|
||||
remoteBuilders = new WarpBuildRemoteBuilders({
|
||||
apiKey: inputs.apiKey,
|
||||
profileName: inputs.profileName,
|
||||
timeout: parsedTimeout
|
||||
|
@ -243,6 +245,10 @@ actionsToolkit.run(
|
|||
fs.rmSync(stateHelper.tmpDir, {recursive: true});
|
||||
});
|
||||
}
|
||||
|
||||
if (remoteBuilders) {
|
||||
await remoteBuilders.cleanup();
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue