docker repository must be lowercase

pull/79/head
Jon Eugster 3 years ago
parent 572be60c65
commit b6052a7e89

@ -87,7 +87,7 @@ async function doImport (owner, repo, id) {
if (manifest.length !== 1) {
throw `Unexpected manifest: ${JSON.stringify(manifest)}`
}
manifest[0].RepoTags = [`github-${owner}:${repo}`]
manifest[0].RepoTags = [`github-${owner?.toString().toLowerCase()}:${repo}`]
fs.writeFileSync(`tmp/artifact_${artifactId}_inner/manifest.json`, JSON.stringify(manifest));
await runProcess(id, "tar", ["-cvf", `../archive_${artifactId}.tar`, "."], `tmp/artifact_${artifactId}_inner/`)
await runProcess(id, "docker", ["load", "-i", `tmp/archive_${artifactId}.tar`])

Loading…
Cancel
Save