mirror of
https://github.com/docker/build-push-action.git
synced 2025-08-11 02:52:11 +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'});
|
const logStream = fs.createWriteStream('/tmp/buildkitd.log', {flags: 'a'});
|
||||||
let buildkitd: ChildProcess;
|
let buildkitd: ChildProcess;
|
||||||
if (!setupOnly) {
|
if (!setupOnly) {
|
||||||
buildkitd = spawn('sudo', [
|
buildkitd = spawn('sudo', ['buildkitd', '--debug', '--config=buildkitd.toml', '--allow-insecure-entitlement', 'security.insecure', '--allow-insecure-entitlement', 'network.host'], {
|
||||||
'buildkitd',
|
|
||||||
'--debug',
|
|
||||||
'--config=buildkitd.toml',
|
|
||||||
'--allow-insecure-entitlement',
|
|
||||||
'security.insecure',
|
|
||||||
'--allow-insecure-entitlement',
|
|
||||||
'network.host'
|
|
||||||
], {
|
|
||||||
stdio: ['ignore', 'pipe', 'pipe']
|
stdio: ['ignore', 'pipe', 'pipe']
|
||||||
});
|
});
|
||||||
} else {
|
} 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}> {
|
export async function getStickyDisk(options?: {signal?: AbortSignal}): Promise<{expose_id: string; device: string}> {
|
||||||
const client = await reporter.createBlacksmithAgentClient();
|
const client = await reporter.createBlacksmithAgentClient();
|
||||||
|
core.info(`Created Blacksmith agent client`);
|
||||||
|
|
||||||
const stickyDiskKey = process.env.GITHUB_REPO_NAME || '';
|
const stickyDiskKey = process.env.GITHUB_REPO_NAME || '';
|
||||||
if (stickyDiskKey === '') {
|
if (stickyDiskKey === '') {
|
||||||
throw new Error('GITHUB_REPO_NAME is not set');
|
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(
|
const response = await client.getStickyDisk(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user