feat: support version/upgrade listing

Closes coop-cloud/organising#130.
This commit is contained in:
2021-10-08 09:51:47 +02:00
parent 98ffc210e1
commit dde8afcd43
6 changed files with 89 additions and 34 deletions

View File

@ -124,7 +124,7 @@ func UpdateLabel(pattern, serviceName, label, recipeName string) error {
return err
}
old := fmt.Sprintf("coop-cloud.${STACK_NAME}.%s.version=%s", service.Name, value)
old := fmt.Sprintf("coop-cloud.${STACK_NAME}.version=%s", value)
replacedBytes := strings.Replace(string(bytes), old, label, -1)
logrus.Debugf("updating '%s' to '%s' in '%s'", old, label, compose.Filename)