We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b166c6 + e072607 commit a5b683bCopy full SHA for a5b683b
1 file changed
src/buildx/install.ts
@@ -86,7 +86,7 @@ export class Install {
86
ignoreReturnCode: true
87
}).then(res => {
88
if (res.stderr.length > 0 && res.exitCode != 0) {
89
- core.warning(res.stderr.trim());
+ throw new Error(`build failed with: ${res.stderr.match(/(.*)\s*$/)?.[0]?.trim() ?? 'unknown error'}`);
90
}
91
return tc.cacheFile(`${outputDir}/buildx`, os.platform() == 'win32' ? 'docker-buildx.exe' : 'docker-buildx', 'buildx', vspec, this.platform());
92
});
0 commit comments