diff --git a/dist/index.js b/dist/index.js index 5d02492..53b33f0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -59082,7 +59082,7 @@ async function savePodmanImageCache(podman, podmanImage) { } const archive = path.join(await tempDir(), cachePodmanArchive) - const key = `${cacheKeyContainerImage},${podmanImage}` + const key = `${cacheKeyContainerImage}-${podmanImage}` await podman.saveImage(podmanImage, archive) @@ -59404,7 +59404,15 @@ class PodmanInPodman { } async export(repoTag, archive) { - const args = ['podman', 'save', '-o', archive, repoTag] + const args = [ + 'podman', + 'save', + '--format', + 'oci-archive', + '-o', + archive, + repoTag + ] core.startGroup(`📦 [PodmanInPodman] Exporting image ${repoTag}...`) const exitCode = await this.container.exec(args) diff --git a/src/cache.js b/src/cache.js index 5315cc4..24a3fb9 100644 --- a/src/cache.js +++ b/src/cache.js @@ -40,7 +40,7 @@ async function savePodmanImageCache(podman, podmanImage) { } const archive = path.join(await tempDir(), cachePodmanArchive) - const key = `${cacheKeyContainerImage},${podmanImage}` + const key = `${cacheKeyContainerImage}-${podmanImage}` await podman.saveImage(podmanImage, archive) diff --git a/src/podman.js b/src/podman.js index ab5117b..2e927e2 100644 --- a/src/podman.js +++ b/src/podman.js @@ -218,7 +218,15 @@ class PodmanInPodman { } async export(repoTag, archive) { - const args = ['podman', 'save', '-o', archive, repoTag] + const args = [ + 'podman', + 'save', + '--format', + 'oci-archive', + '-o', + archive, + repoTag + ] core.startGroup(`📦 [PodmanInPodman] Exporting image ${repoTag}...`) const exitCode = await this.container.exec(args)