Anoter fix.

This commit is contained in:
mike12345567 2024-07-24 16:48:35 +01:00
parent 2e2a61366f
commit b68697002a
1 changed files with 2 additions and 3 deletions

View File

@ -68,12 +68,11 @@ export async function knexClient(ds: Datasource) {
export async function startContainer(container: GenericContainer) { export async function startContainer(container: GenericContainer) {
const imageName = (container as any).imageName.string as string const imageName = (container as any).imageName.string as string
let key: string let key: string = imageName
if (imageName.includes("@sha256")) { if (imageName.includes("@sha256")) {
key = imageName.split("@")[0] key = imageName.split("@")[0]
} else {
key = imageName.replaceAll("/", "-").replaceAll(":", "-")
} }
key = key.replaceAll("/", "-").replaceAll(":", "-")
container = container container = container
.withReuse() .withReuse()