mirror of
https://github.com/docker/build-push-action.git
synced 2025-08-09 18:12:12 +00:00
Merge pull request #113 from useblacksmith/newlogs
src: more debug logs
This commit is contained in:
commit
f0d8aee790
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
@ -114,15 +114,7 @@ export async function startBuildkitd(parallelism: number, addr: string, setupOnl
|
||||
const logStream = fs.createWriteStream('/tmp/buildkitd.log', {flags: 'a'});
|
||||
let buildkitd: ChildProcess;
|
||||
if (!setupOnly) {
|
||||
buildkitd = spawn('sudo', [
|
||||
'buildkitd',
|
||||
'--debug',
|
||||
'--config=buildkitd.toml',
|
||||
'--allow-insecure-entitlement',
|
||||
'security.insecure',
|
||||
'--allow-insecure-entitlement',
|
||||
'network.host'
|
||||
], {
|
||||
buildkitd = spawn('sudo', ['buildkitd', '--debug', '--config=buildkitd.toml', '--allow-insecure-entitlement', 'security.insecure', '--allow-insecure-entitlement', 'network.host'], {
|
||||
stdio: ['ignore', 'pipe', 'pipe']
|
||||
});
|
||||
} else {
|
||||
@ -174,12 +166,13 @@ export async function startBuildkitd(parallelism: number, addr: string, setupOnl
|
||||
|
||||
export async function getStickyDisk(options?: {signal?: AbortSignal}): Promise<{expose_id: string; device: string}> {
|
||||
const client = await reporter.createBlacksmithAgentClient();
|
||||
core.info(`Created Blacksmith agent client`);
|
||||
|
||||
const stickyDiskKey = process.env.GITHUB_REPO_NAME || '';
|
||||
if (stickyDiskKey === '') {
|
||||
throw new Error('GITHUB_REPO_NAME is not set');
|
||||
}
|
||||
core.debug(`Getting sticky disk for ${stickyDiskKey}`);
|
||||
core.info(`Getting sticky disk for ${stickyDiskKey}`);
|
||||
|
||||
const response = await client.getStickyDisk(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user