mirror of
https://github.com/docker/setup-buildx-action.git
synced 2025-06-28 00:06:42 +02:00
Display BuildKit version
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
012185ccbe
commit
36d8e005ca
5 changed files with 59 additions and 11 deletions
|
@ -81,6 +81,9 @@ async function run(): Promise<void> {
|
|||
|
||||
if (inputs.driver == 'docker-container') {
|
||||
stateHelper.setContainerName(`buildx_buildkit_${builder.node_name}`);
|
||||
core.startGroup(`BuildKit version`);
|
||||
core.info(await buildx.getBuildKitVersion(`buildx_buildkit_${builder.node_name}`));
|
||||
core.endGroup();
|
||||
}
|
||||
if (core.isDebug() || builder.node_flags?.includes('--debug')) {
|
||||
stateHelper.setDebug('true');
|
||||
|
@ -94,7 +97,7 @@ async function cleanup(): Promise<void> {
|
|||
if (stateHelper.IsDebug && stateHelper.containerName.length > 0) {
|
||||
core.startGroup(`BuildKit container logs`);
|
||||
await mexec.exec('docker', ['logs', `${stateHelper.containerName}`], false).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
if (res.stderr.length > 0 && !res.success) {
|
||||
core.warning(res.stderr);
|
||||
}
|
||||
});
|
||||
|
@ -104,7 +107,7 @@ async function cleanup(): Promise<void> {
|
|||
if (stateHelper.builderName.length > 0) {
|
||||
core.startGroup(`Removing builder`);
|
||||
await mexec.exec('docker', ['buildx', 'rm', `${stateHelper.builderName}`], false).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
if (res.stderr.length > 0 && !res.success) {
|
||||
core.warning(res.stderr);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue