0
0
forked from toolshed/abra

fix(recipe): Prevent crash when recipe has no previous tag or release

This commit is contained in:
2025-10-27 20:13:46 +01:00
parent 11656c009d
commit e11f775260
2 changed files with 15 additions and 4 deletions

View File

@ -282,7 +282,11 @@ func GatherImagesForDeploy(cl *dockerClient.Client, app appPkg.App, compose *com
}
imageBaseName := reference.Path(imageParsed)
imageTag := imageParsed.(reference.NamedTagged).Tag()
namedTag, ok := imageParsed.(reference.NamedTagged)
if !ok {
continue
}
imageTag := namedTag.Tag()
existingImageVersion, ok := newImages[imageBaseName]
if !ok {