From 36d8e005cad32714f2d5fb6c6c4af907e3d6aa5d Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 28 Apr 2021 18:08:43 +0200 Subject: [PATCH] Display BuildKit version Signed-off-by: CrazyMax --- .github/setup-buildx-action.png | Bin 5172 -> 11122 bytes .github/workflows/ci.yml | 2 ++ dist/index.js | 37 ++++++++++++++++++++++++++------ src/buildx.ts | 24 ++++++++++++++++++--- src/main.ts | 7 ++++-- 5 files changed, 59 insertions(+), 11 deletions(-) diff --git a/.github/setup-buildx-action.png b/.github/setup-buildx-action.png index 72fbeda9869cb5331ee45966234b320a5e03b11f..39e6888c8836f7a64584cfe5de6ecbdb282a69b0 100644 GIT binary patch literal 11122 zcmZ{J1ymf(wl$hThryjef&~Hz&H#f2hoHgTJ%bE7xFsRDL+~IWxLa@u?(Ptr;4a~j z``-88ch_5guUXZntEW!wI@)R2%+p-4!`)flKxJzd!- zK2H|~DvBCXm^dI3O8W5l3|<@%CXSd%Jj?|0B(PvIXe%&)6nrxr1sX zfr!aRCb^5!Yv(V?=Qq07&h^!X#Es2)2YwC)qd5#22Pu z4b!1~YoaPvI+mmDmgH^}qNZ)k$s$cn$HZyS=E+X707){zBJ z_K*cwGxbpX8H`V!BrponFVu3}Q)B_~PXN*l(!r!Hbb`lfc!Kq5z|Gg@L;@tLc;#U{ zXB2-#8QEe013ar{Ak+q$4r{xNG-YTA0mTWJ}B1h_&17zukuodS?F(L zMs6>pWrh28f0_976W2tw>V?Vny7~0T4Gl#c>y(C38CQi2Ao_-XpG>}!i zQotURIz?zKywhrNonG*4jUO67My}3D8As8aOvj+R$$*pDIWkkDF~&w68SMA#a>Jjy8$SyS-}oMKVnTG~c|=74op0XvZS&~2ZnClV+T z$sp9{tjYl16%V32Nsjt*vMZPdXWWmN+;BIEdvHy`-^xvs7dU+oqVsp-IU93Ly_oIO zgEAN?zoo3Sz<0@uiHewx0GsEHsd*7n<}sIMXdiWy2HQ8*k~|IEX;ha+8%?!@jz>)q z%InYe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rjC&9Y1B@Q|=h>_hi8FjCV=)E7u>bj?t9ehOLhW(r{{c9J 0) { core.startGroup(`BuildKit container logs`); yield 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); } }); @@ -608,7 +611,7 @@ function cleanup() { if (stateHelper.builderName.length > 0) { core.startGroup(`Removing builder`); yield 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); } }); @@ -2147,7 +2150,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.install = exports.inspect = exports.isAvailable = exports.parseVersion = exports.getVersion = void 0; +exports.getBuildKitVersion = exports.install = exports.inspect = exports.isAvailable = exports.parseVersion = exports.getVersion = void 0; const fs = __importStar(__webpack_require__(747)); const path = __importStar(__webpack_require__(622)); const semver = __importStar(__webpack_require__(383)); @@ -2160,7 +2163,7 @@ const tc = __importStar(__webpack_require__(784)); function getVersion() { return __awaiter(this, void 0, void 0, function* () { return yield exec.exec(`docker`, ['buildx', 'version'], true).then(res => { - if (res.stderr != '' && !res.success) { + if (res.stderr.length > 0 && !res.success) { throw new Error(res.stderr); } return parseVersion(res.stdout); @@ -2181,7 +2184,7 @@ exports.parseVersion = parseVersion; function isAvailable() { return __awaiter(this, void 0, void 0, function* () { return yield exec.exec(`docker`, ['buildx'], true).then(res => { - if (res.stderr != '' && !res.success) { + if (res.stderr.length > 0 && !res.success) { return false; } return res.success; @@ -2192,7 +2195,7 @@ exports.isAvailable = isAvailable; function inspect(name) { return __awaiter(this, void 0, void 0, function* () { return yield exec.exec(`docker`, ['buildx', 'inspect', name], true).then(res => { - if (res.stderr != '' && !res.success) { + if (res.stderr.length > 0 && !res.success) { throw new Error(res.stderr); } const builder = {}; @@ -2314,6 +2317,28 @@ function filename(version) { return util.format('buildx-v%s.%s-%s%s', version, platform, arch, ext); }); } +function getBuildKitVersion(containerID) { + return __awaiter(this, void 0, void 0, function* () { + return exec.exec(`docker`, ['inspect', '--format', '{{.Config.Image}}', containerID], true).then(bkitimage => { + if (bkitimage.success && bkitimage.stdout.length > 0) { + return exec.exec(`docker`, ['run', '--rm', bkitimage.stdout, '--version'], true).then(bkitversion => { + if (bkitversion.success && bkitversion.stdout.length > 0) { + return `${bkitimage.stdout} => ${bkitversion.stdout}`; + } + else if (bkitversion.stderr.length > 0) { + core.warning(bkitversion.stderr); + } + return bkitversion.stdout; + }); + } + else if (bkitimage.stderr.length > 0) { + core.warning(bkitimage.stderr); + } + return bkitimage.stdout; + }); + }); +} +exports.getBuildKitVersion = getBuildKitVersion; //# sourceMappingURL=buildx.js.map /***/ }), diff --git a/src/buildx.ts b/src/buildx.ts index f9f4a79..65a1dcc 100644 --- a/src/buildx.ts +++ b/src/buildx.ts @@ -20,7 +20,7 @@ export type Builder = { export async function getVersion(): Promise { return await exec.exec(`docker`, ['buildx', 'version'], true).then(res => { - if (res.stderr != '' && !res.success) { + if (res.stderr.length > 0 && !res.success) { throw new Error(res.stderr); } return parseVersion(res.stdout); @@ -37,7 +37,7 @@ export async function parseVersion(stdout: string): Promise { export async function isAvailable(): Promise { return await exec.exec(`docker`, ['buildx'], true).then(res => { - if (res.stderr != '' && !res.success) { + if (res.stderr.length > 0 && !res.success) { return false; } return res.success; @@ -46,7 +46,7 @@ export async function isAvailable(): Promise { export async function inspect(name: string): Promise { return await exec.exec(`docker`, ['buildx', 'inspect', name], true).then(res => { - if (res.stderr != '' && !res.success) { + if (res.stderr.length > 0 && !res.success) { throw new Error(res.stderr); } const builder: Builder = {}; @@ -171,3 +171,21 @@ async function filename(version: string): Promise { const ext: string = context.osPlat == 'win32' ? '.exe' : ''; return util.format('buildx-v%s.%s-%s%s', version, platform, arch, ext); } + +export async function getBuildKitVersion(containerID: string): Promise { + return exec.exec(`docker`, ['inspect', '--format', '{{.Config.Image}}', containerID], true).then(bkitimage => { + if (bkitimage.success && bkitimage.stdout.length > 0) { + return exec.exec(`docker`, ['run', '--rm', bkitimage.stdout, '--version'], true).then(bkitversion => { + if (bkitversion.success && bkitversion.stdout.length > 0) { + return `${bkitimage.stdout} => ${bkitversion.stdout}`; + } else if (bkitversion.stderr.length > 0) { + core.warning(bkitversion.stderr); + } + return bkitversion.stdout; + }); + } else if (bkitimage.stderr.length > 0) { + core.warning(bkitimage.stderr); + } + return bkitimage.stdout; + }); +} diff --git a/src/main.ts b/src/main.ts index 2cc9868..c0f14f4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -81,6 +81,9 @@ async function run(): Promise { 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 { 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 { 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); } });