Possibility to set tech during update
Unittests / unittests (push) Successful in 9s Details
Unittests / deploy-dev (push) Successful in 53s Details

This commit is contained in:
Adam Štrauch 2024-02-01 20:57:13 +01:00
parent 45899f3b0c
commit bc4b6c7bff
Signed by: cx
GPG Key ID: 7262DAFE292BCE20
1 changed files with 13 additions and 0 deletions

View File

@ -422,6 +422,19 @@ func (p *Processor) Update(appTemplate apps.App) error {
return err
}
// Setup technology if it's noted in the request
if len(appTemplate.Setup.Tech) > 0 {
err := p.waitForApp()
if err != nil {
return err
}
err = p.EnableTech(appTemplate.Setup.Tech, appTemplate.Setup.TechVersion)
if err != nil {
return fmt.Errorf("failed to enable tech: %v", err)
}
}
return nil
}