Skip to content

Commit

Permalink
fix cache key, and export format
Browse files Browse the repository at this point in the history
  • Loading branch information
yylyyl committed Oct 19, 2023
1 parent 26b7d50 commit c92a378
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 9 additions & 1 deletion src/podman.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c92a378

Please sign in to comment.