allow to define remote branches as recipe source

This commit is contained in:
2024-12-26 17:55:35 +01:00
parent 04aec8232f
commit 161f2127d6
2 changed files with 6 additions and 4 deletions

View File

@ -95,6 +95,7 @@ func (r Recipe) GetVersionLabelLocal() (string, error) {
for _, service := range config.Services {
for label, value := range service.Deploy.Labels {
log.Debugf("checking deploy label '%s'", label)
if strings.HasPrefix(label, "coop-cloud") && strings.Contains(label, "version") {
return value, nil
}