Fix single technology image
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

It caused premature ending of the status processing in the admin.
This commit is contained in:
Adam Štrauch 2021-12-22 01:02:23 +01:00
parent 7fe8dfcd9b
commit c2e9b1cc18
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 5 additions and 0 deletions

View File

@ -321,6 +321,11 @@ func (c *Container) GetTechs() (apps.AppTechs, error) {
return techs, nil
}
// If the directory doesn't exist it's single technology image
if strings.Contains(string(*stdouterr), "No such file or directory") {
return techs, nil
}
techsRaw := strings.Fields(string(*stdouterr))
for _, techRaw := range techsRaw {
techParts := strings.Split(techRaw, "-")