From 06212e9b9e2bfe80ea33ba78f81f5e001d6a5315 Mon Sep 17 00:00:00 2001 From: yylyyl Date: Thu, 19 Oct 2023 02:12:37 -0400 Subject: [PATCH] fix podman command --- badges/coverage.svg | 2 +- dist/index.js | 6 ++++-- src/podman.js | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/badges/coverage.svg b/badges/coverage.svg index 03b4c01..ab19260 100644 --- a/badges/coverage.svg +++ b/badges/coverage.svg @@ -1 +1 @@ -Coverage: 14.28%Coverage14.28% \ No newline at end of file +Coverage: 14.14%Coverage14.14% \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index afcaa9e..87d22da 100644 --- a/dist/index.js +++ b/dist/index.js @@ -59267,13 +59267,13 @@ class Podman { image, cmds ) { - const args = ['-d', '--name', name] + const args = ['run', '-d', '--name', name] for (const dev of devices) { args.push('--device', dev) } for (const v of volumes) { - args.push('--v', v) + args.push('-v', v) } if (user) { args.push('--user', user) @@ -59478,6 +59478,7 @@ class PodmanInPodman { async function createPodmanInPodman(podman, githubWorkdir, workdir, image) { const tmpDir = await tempDir() + core.startGroup(`✨ [PodmanInPodman] Creating podman-in-podman container...`) const podmanContainer = await podman.runDetachedContainer( 'podmaninpodman', ['/dev/fuse:rw'], @@ -59487,6 +59488,7 @@ async function createPodmanInPodman(podman, githubWorkdir, workdir, image) { image, sleepCmd ) + core.endGroup() return new PodmanInPodman(podman, podmanContainer) } diff --git a/src/podman.js b/src/podman.js index ed8140b..1b1249e 100644 --- a/src/podman.js +++ b/src/podman.js @@ -81,13 +81,13 @@ class Podman { image, cmds ) { - const args = ['-d', '--name', name] + const args = ['run', '-d', '--name', name] for (const dev of devices) { args.push('--device', dev) } for (const v of volumes) { - args.push('--v', v) + args.push('-v', v) } if (user) { args.push('--user', user) @@ -292,6 +292,7 @@ class PodmanInPodman { async function createPodmanInPodman(podman, githubWorkdir, workdir, image) { const tmpDir = await tempDir() + core.startGroup(`✨ [PodmanInPodman] Creating podman-in-podman container...`) const podmanContainer = await podman.runDetachedContainer( 'podmaninpodman', ['/dev/fuse:rw'], @@ -301,6 +302,7 @@ async function createPodmanInPodman(podman, githubWorkdir, workdir, image) { image, sleepCmd ) + core.endGroup() return new PodmanInPodman(podman, podmanContainer) }